undo removal of stripping <p>s as it breaks HTML /mes

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-07-18 10:48:54 +01:00
parent 19e5dc5799
commit f5856270cc
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E
3 changed files with 32 additions and 6 deletions

View file

@ -1089,8 +1089,7 @@ export default class MessageComposerInput extends React.Component {
if (contentText === '') return true;
if (shouldSendHTML) {
// FIXME: should we strip out the surrounding <p></p>?
contentHTML = this.html.serialize(editorState); // HtmlUtils.processHtmlForSending();
contentHTML = HtmlUtils.processHtmlForSending(this.html.serialize(editorState));
}
} else {
const sourceWithPills = this.plainWithMdPills.serialize(editorState);