mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
vdom: Use _.escape for correct HTML escaping.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
8e356368f7
commit
e5b70920e5
@@ -37,7 +37,7 @@ exports.render_tag = (tag) => {
|
||||
*/
|
||||
const opts = tag.opts;
|
||||
const tag_name = tag.tag_name;
|
||||
const attr_str = opts.attrs.map(attr => ' ' + attr[0] + '="' + util.escape_html(attr[1]) + '"').join('');
|
||||
const attr_str = opts.attrs.map(attr => ' ' + attr[0] + '="' + _.escape(attr[1]) + '"').join('');
|
||||
|
||||
const start_tag = '<' + tag_name + attr_str + '>';
|
||||
const end_tag = '</' + tag_name + '>';
|
||||
|
||||
Reference in New Issue
Block a user