mirror of https://github.com/status-im/codimd.git
fix: use lodash escapeHTML
Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
parent
a7082633aa
commit
dd267096c9
|
@ -393,7 +393,7 @@ export function finishView (view) {
|
||||||
window.mermaid.init(undefined, $ele)
|
window.mermaid.init(undefined, $ele)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
$value.unwrap()
|
$value.unwrap()
|
||||||
$value.parent().append(`<div class="alert alert-warning">${S(err.str).escapeHTML().s}</div>`)
|
$value.parent().append(`<div class="alert alert-warning">${escapeHTML(err.str)}</div>`)
|
||||||
console.warn(err)
|
console.warn(err)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue