@f0c1s/escape-html
v2022.0.0
Published
[escape html](https://www.npmjs.com/package/@f0c1s/escape-html)
Downloads
4
Keywords
Readme
escape-html
Installation
npm i @f0c1s/escape-html
Usage
var {escape} = require('@f0c1s/escape-html');
var data = [
'1234567890',
'!@#$%^&*()',
'¡™£¢∞§¶•ªº',
'`~-_=+`–≠',
'[]\{}|“‘«',
';:"…æÚÆ',
',./<>?≤≥÷¯˘¿',
'qwertyuiopasdfghjklzxcvbnm',
'QWERTYUIOPASDFGHJKLZXCVBNM',
'œ∑´®†¥¨ˆøπåß∂ƒ©˙∆˚¬≈ç√∫˜µ',
'Œ„´‰ˇÁ¨Ø∏ÍνÓÔÒ¸˛Ç◊ı˜Â'
];
data.forEach(d => console.log(escape(d)));
// output
[
'1234567890',
'!@#$%^&*()',
'¡™£¢∞§¶•ªº',
'`~-_=+`–≠',
'[]{}|“‘«',
';:"…æÚÆ',
',./<>?≤≥÷¯˘¿',
'qwertyuiopasdfghjklzxcvbnm',
'QWERTYUIOPASDFGHJKLZXCVBNM',
'œ∑´®†¥¨ˆøπåß∂ƒ©˙∆˚¬≈ç√∫˜µ',
'Œ„´‰ˇÁ¨Ø∏ÍνÓÔÒ¸˛Ç◊ı˜Â'
]
Also,go to browser and document.write
these strings check out following image.
LICENSE
MIT
Development
npm i -g typescript jasmine
You don't need typescript in the local node_modules directory.
It's 60MB everytime you install typescript locally.
However, you can npm i -D typescript jasmine
if you like. Just don't commit it.