Comparing version 1.0.2 to 1.0.3
const lib = require('./utils/lib'); | ||
const convertString = (str) => { | ||
if (typeof str === 'string') { | ||
if ( | ||
typeof str === 'string' && | ||
str.includes('&') && | ||
str.includes(';') | ||
) { | ||
for (const cObj of lib.htmlEntities) { | ||
@@ -6,0 +10,0 @@ str = str.split(cObj.htmlEntity).join(cObj.letter) |
{ | ||
"name": "lib-string", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
8826
380