</?(?i:script|div|table|frameset|b|frame|iframe|style)(.|\n)*?>
I'm trying to filter certain HTML elements using this regex expression. I also want to filter "b" and "/b" as well but it doesn't seem to work for those.
Thank you.
</?(?i:script|div|table|frameset|b|frame|iframe|style)(.|\n)*?>
I'm trying to filter certain HTML elements using this regex expression. I also want to filter "b" and "/b" as well but it doesn't seem to work for those.
Thank you.
I would recommend you to instead of removing some specific tags, to allow some specific tags, and remove all other. That is, have a default-forbid policy.