stubbornella/csslint — Issue #244: xml output not escaping special char & for xml-parser
Author: barigorokarl
Created: 2012-02-20 11:04:43+00:00
State: open

The lint-xml and csslint-xml output formatters do not escape the "&" special char.

An additional ".replace(/&(?!amp;)/g,'&')" in the escapeSpecialCharacters function returns fixes that.

```javasript
return str.replace(/\"/g, "'").replace(//g, ">").replace(/&(?!amp;)/g,'&');
```

(yes, it's ugly, but there's the possibility of "something: expression( 1 && 2 )" in old css-files ...)