forked from matrix/element-web
Merge pull request #8238 from vector-im/dbkr/lt_gt_desktop_notifs
Fix literal </> in notifications
This commit is contained in:
commit
9aa8b32df8
|
@ -136,7 +136,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||
// maybe we should pass basic styling (italics, bold, underline) through from MD
|
||||
// we only have to strip out < and > as the spec doesn't include anything about things like &
|
||||
// so we shouldn't assume that all implementations will treat those properly. Very basic tag parsing is done.
|
||||
if (navigator.userAgent.indexOf('Linux')) {
|
||||
if (navigator.userAgent.includes('Linux')) {
|
||||
msg = msg.replace(/</g, '<').replace(/>/g, '>');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue