Forum Moderators: open
var cssArr = [
'display',
'float',
'white-space',
'width',
'height',
'min-width',
'min-height',
'padding(-\\w+)?',
'margin(-\\w+)?',
'position',
'top',
'bottom',
'left',
'right',
'orphans',
'widows',
'text-align',
'text-indent',
'word(-\\w+)?',
'overflow(-\\w+)?',
'box-sizing',
'font-variant(-\\w+)?',
'background(-\\w+)?',
'-webkit-[\\w-]',
'-ms-[\\w-]',
'-moz-[\\w-]',
'-o-[\\w-]'
];
var style_match;
for (var i = 0; i < cssArr.length; i++) {
// the following line is line 287
style_match = new RegExp("style=(\"|')([\\w\\s:;-])*" + cssArr[i] + "\\s*:\\s*[\\w-]+?[;>\1]", 'gi');
while (style_match.test(a))
a = a.replace(style_match, 'style=$1$2');
}
287:94 error Parsing error: Octal literal in strict mode 285 | 286 | for (var i = 0; i < cssArr.length; i++) { > 287 | style_match = new RegExp("style=(\"|')([\\w\\s:;-])*" + cssArr[i] + "\\s*:\\s*[\\w-]+?[;>\1]", 'gi'); | ^ 288 | 289 | while (style_match.test(a)) 290 | a = a.replace(style_match, 'style=$1$2');