Escape '"' for html too, in case we end up in an attribute.
This commit is contained in:
parent
d1a7b77c28
commit
6ef2d5637c
|
|
@ -309,7 +309,8 @@ function fmt_idle_long(obj) {
|
|||
function fmt_escape_html(txt) {
|
||||
return txt.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/\n/g, '<br/>');
|
||||
.replace(/\n/g, '<br/>')
|
||||
.replace(/\"/g, '"');
|
||||
}
|
||||
|
||||
function fmt_maybe_wrap(txt, encoding) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue