kukudebai-tools
v1.0.0
Published
Learn to use tools.
Downloads
6
Maintainers
Readme
install
npm isntall kukudebai-tools
use
import
const tools = require('kukudebai-tools')
date Format
const dt = tools.dateFormat(new Date())
console.log(dt)
output format: YYYY-MM-DD HH:mm:ss
result : 2020-04-03 18:46:58
Html escape
const str ='<h1 id="dfdf">Hello</h1>'
const test_txt = dtFormat.htmlEscape(str)
console.log(test_txt);
console.log(dtFormat.htmlUnEscape(test_txt));
htmlEscape Result : <h1 id="dfdf">Hello</h1>
htmlUnEscape Result : <h1 id="dfdf">Hello</h1>