mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
undo code style change
This commit is contained in:
parent
5f920f729b
commit
0f11bc62cc
1 changed files with 3 additions and 5 deletions
|
@ -479,11 +479,9 @@ export function bodyToHtml(content, highlights, opts={}) {
|
|||
'markdown-body': isHtml,
|
||||
});
|
||||
|
||||
if (isHtml) {
|
||||
return <span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} dir="auto" />;
|
||||
}
|
||||
|
||||
return <span className={className} dir="auto">{ strippedBody }</span>;
|
||||
return isHtml ?
|
||||
<span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} dir="auto" /> :
|
||||
<span className={className} dir="auto">{ strippedBody }</span>;
|
||||
}
|
||||
|
||||
export function emojifyText(text) {
|
||||
|
|
Loading…
Reference in a new issue