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

undo code style change

This commit is contained in:
Michael Telatynski
2018-04-23 10:58:39 +01:00
committed by GitHub
parent 5f920f729b
commit 0f11bc62cc

View File

@@ -479,11 +479,9 @@ export function bodyToHtml(content, highlights, opts={}) {
'markdown-body': isHtml, 'markdown-body': isHtml,
}); });
if (isHtml) { return isHtml ?
return <span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} dir="auto" />; <span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} dir="auto" /> :
} <span className={className} dir="auto">{ strippedBody }</span>;
return <span className={className} dir="auto">{ strippedBody }</span>;
} }
export function emojifyText(text) { export function emojifyText(text) {