Fix ampersand escaping on JS values
This commit is contained in:
parent
cbe66020f9
commit
ffdf2d3c9b
@ -33,7 +33,7 @@ tree.Value.prototype = {
|
||||
var val = this.ev(env);
|
||||
var v = val.toString();
|
||||
if(val.is === "color" || val.is === 'uri' || val.is === 'string' || val.is === 'keyword') {
|
||||
v = "'" + v + "'";
|
||||
v = "'" + v.replace('&', '&') + "'";
|
||||
} else if (Array.isArray(this.value) && this.value.length > 1) {
|
||||
// This covers something like `line-dasharray: 5, 10;`
|
||||
// where the return _value has more than one element.
|
||||
|
Loading…
Reference in New Issue
Block a user