DennisSuitters / summernote-cleaner

Plugin for Summernote that adds a Button and/or Paste functionality for cleaning MS Word Crud from editor text
MIT License
193 stars 112 forks source link

badTags using greedy matching? #80

Closed edwh closed 2 years ago

edwh commented 3 years ago

Thanks for the plugin. The code has this:

tS = new RegExp('<' + bT[i] + '.*>.*<\/' + bT[i] + '>', 'gi');

Shouldn't this be:

tS = new RegExp('<' + bT[i] + '.*?>.*?<\/' + bT[i] + '>', 'gi');

Commifreak commented 3 years ago

https://github.com/DiemenDesign/summernote-cleaner/issues/69#issuecomment-708914647

DennisSuitters commented 2 years ago

I've updated and made changes to the plugin, if you could try it and let me know, that would be great.

DennisSuitters commented 2 years ago

We'd had some PR's merged that were created by a generous helper, if you could check and see if this is still an issue for you, could you please reopen or create a new issue, thank you.