nodejs-html-truncate icon indicating copy to clipboard operation
nodejs-html-truncate copied to clipboard

Should convert html entities to chars before processing

Open SelmanKahya opened this issue 10 years ago • 0 comments

I think this module should be converting html entities to chars before processing, so & should become & only then we could truncate.

After executing the following: truncate("FIFA Tournaments - Players &amp; Coaches - <b>Mario BALOTELLI</b>", 50)

expected: FIFA Tournaments - Players &amp; Coaches - <b>Mario BALOT</b>

actual: FIFA Tournaments - Players &amp; Coaches - <b>Mario B</b>

SelmanKahya avatar Sep 30 '15 09:09 SelmanKahya