Escape '&'.
This commit is contained in:
parent
4468c92a45
commit
fd4ad166dc
|
|
@ -309,7 +309,8 @@ function fmt_idle_long(obj) {
|
|||
}
|
||||
|
||||
function fmt_escape_html(txt) {
|
||||
return txt.replace(/</g, '<')
|
||||
return txt.replace(/&/g, '&')
|
||||
.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/\n/g, '<br/>')
|
||||
.replace(/\"/g, '"');
|
||||
|
|
|
|||
Loading…
Reference in New Issue