Move processing into renamed function processHtmlforSending
And explain why this fix is necessary
This commit is contained in:
parent
69589c19e7
commit
f73fa4b49b
2 changed files with 9 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue