mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Also support just open
This commit is contained in:
@@ -3,7 +3,11 @@ import xss from 'pretty-text/xss';
|
||||
const _validIframes = [];
|
||||
|
||||
function attr(name, value) {
|
||||
return `${name}="${xss.escapeAttrValue(value)}"`;
|
||||
if (value) {
|
||||
return `${name}="${xss.escapeAttrValue(value)}"`;
|
||||
}
|
||||
|
||||
return name;
|
||||
}
|
||||
|
||||
const ESCAPE_REPLACEMENTS = {
|
||||
|
||||
Reference in New Issue
Block a user