fix: use lodash escapeHTML

Signed-off-by: Max Wu <jackymaxj@gmail.com>
This commit is contained in:
Max Wu 2019-07-28 19:51:59 +08:00
parent a7082633aa
commit dd267096c9
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ export function finishView (view) {
window.mermaid.init(undefined, $ele)
} catch (err) {
$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)
}
})