You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Merge remote-tracking branch 'origin/t3chguy/m.relates_to' into t3chguy/m.relates_to
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user