Closed hanakin closed 2 years ago
the current regex example in the readme does not account for h1-h6 or svg tags
svgs are hung up on the / in the xlmns links as removing the "/" from the negate seems to break the ext, but the below code works hor h1-h6s
suggest changing it to <(?!area|base|br|col|embed|hr|img|input|link|menuitem|meta|param|source|track|wbr)([a-zA-Z0-9]+)[^>\/]*>
@hanakin Thx
Describe the issue
the current regex example in the readme does not account for h1-h6 or svg tags
svgs are hung up on the / in the xlmns links as removing the "/" from the negate seems to break the ext, but the below code works hor h1-h6s
suggest changing it to <(?!area|base|br|col|embed|hr|img|input|link|menuitem|meta|param|source|track|wbr)([a-zA-Z0-9]+)[^>\/]*>