huang47 / nodejs-html-truncate

truncate html text and keep tag safe
77 stars 30 forks source link

IE 7-8 issue #3

Open MroCat opened 11 years ago

MroCat commented 11 years ago

Have you tested this script for IE 7-8? Looks like in _dumpCloseTag passes array of all tags in string. Try to test with string full of tags with table at the end.

huang47 commented 11 years ago

nope I don't..would you mind telling me more details and I can try it on modern.ie : )

MroCat commented 11 years ago

As I wrote before, in FF and Chrome in _dumpCloseTag passed only tags that haven't been closed after truncate the string. But in IE all tags in the string are passed. Seems to me that in IE not truncated.