Also encode > and '
This commit is contained in:
parent
9de3c1b59d
commit
6e424eb990
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ function n(app, text_singular, text_plural, count, vars) {
|
|||
* @return Sanitized string
|
||||
*/
|
||||
function escapeHTML(s) {
|
||||
return s.toString().split('&').join('&').split('<').join('<').split('"').join('"');
|
||||
return s.toString().split('&').join('&').split('<').join('<').split('>').join('>').split('"').join('"').split('\'').join(''');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue