diff options
Diffstat (limited to 'cordova/node_modules/xml-escape/README.md')
| -rwxr-xr-x | cordova/node_modules/xml-escape/README.md | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/cordova/node_modules/xml-escape/README.md b/cordova/node_modules/xml-escape/README.md deleted file mode 100755 index 5faf9f9..0000000 --- a/cordova/node_modules/xml-escape/README.md +++ /dev/null @@ -1,38 +0,0 @@ -xml-escape -========== - -Escape XML in javascript (NodeJS) - -npm install xml-escape - -```javascript -// Warning escape is a reserved word, so maybe best to use xmlescape for var name -var xmlescape = require('xml-escape'); - -xmlescape('"hello" \'world\' & false < true > -1'); - -// output -// '"hello" 'world' & false < true > -1' - -// don't escape some characters -xmlescape('"hello" \'world\' & false < true > -1', '>"&') - -// output -// '"hello" 'world' & false < true > -1' -``` - - -There is also now an ignore function thanks to @jayflo - -```javascript -esc = require('./'); - -ignore = '"<&' -// note you should never ignore an & -output = esc('I am "<¬>" escaped', ignore) -console.log(output) - -//I am "<¬>" escaped -``` - -[](https://bitdeli.com/free "Bitdeli Badge") |
