nodejs-html-truncate
nodejs-html-truncate copied to clipboard
Should convert html entities to chars before processing
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 & Coaches - <b>Mario BALOTELLI</b>", 50)
expected:
FIFA Tournaments - Players & Coaches - <b>Mario BALOT</b>
actual:
FIFA Tournaments - Players & Coaches - <b>Mario B</b>