1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Move processing into renamed function processHtmlforSending

And explain why this fix is necessary
This commit is contained in:
Luke Barnard
2017-06-28 11:49:50 +01:00
parent 69589c19e7
commit f73fa4b49b
2 changed files with 9 additions and 3 deletions

View File

@@ -507,9 +507,9 @@ export default class MessageComposerInput extends React.Component {
}
if (this.state.isRichtextEnabled) {
contentHTML = HtmlUtils.stripParagraphs(
contentHTML = HtmlUtils.processHtmlForSending(
RichText.contentStateToHTML(contentState),
).replace(/\<br\>\n/g, '<br>');
);
} else {
const md = new Markdown(contentText);
if (md.isPlainText()) {