workplus-escape
Toggle escape string and object for use in HTML.
Install
npm install --save workplus-escape
Usage
; const str = ;// str => '<h1></h1>"' const rts = ;// rts => '<h2></h2>' let someObject = a: '<h1></h1>' b: "'" c: x: '""' ;let obj = ;// obj.a => '<h1></h1>'// ibj.b => '''// obj.c.x => '""' let jbo = ;// jbo.a => '<h1></h1>'
Development
git clone https://github.com/WorkPlusFE/workplus-escape.git npm install npm test
License
MIT