dave-kennedy / clean-html

HTML cleaner and beautifier for Node
The Unlicense
47 stars 10 forks source link

working with patterns #10

Closed smnbbrv closed 7 years ago

smnbbrv commented 7 years ago

Hi,

the library is cool, I just need it to be a bit more functional. From what I understand currently it does not provide the ability to remove-attributes / remove-tags etc. by a pattern, so e.g. I want to remove all tags that match a pattern /abc-[a-z0-9]+/i.

Is it possible to have a feature like that?

dave-kennedy commented 7 years ago

That's a great idea. Can you submit a PR?

smnbbrv commented 7 years ago

please check #11

dave-kennedy commented 7 years ago

Featured merged. Thanks!