strip tags from an HTML string
the HTML string you want to strip tags from
an array of tag names allow in final output
assert(stripTags("<html><b>bold</b></html>") == "bold"); assert(stripTags("<html><b>bold</b></html>", ["<html>"]) == "<html>bold</html>");
See Implementation
strip tags from an HTML string