minchenkov / node-html-encoder

NodeJS wrapper for JavaScript HTML Encoder library http://www.strictly-software.com/htmlencode
24 stars 4 forks source link

Encoding not handling Square Brackets "[ ]" #7

Open timrsfo opened 7 years ago

timrsfo commented 7 years ago

I am able to decode a numerically encoded string containing square brackets but decode does not catch the sq brackets. e.g. // numerical type encoder encoder = new Encoder('numerical'); // not encoded .... console.log(encoder.htmlEncode('Views [Clean]')) output > "Views [Clean]"

// This works console.log(encoder.htmlDecode('Views [Clean]')) output > "Views [Clean]"