I have written code for removing HTML tags, but it is also removing a type of strings. I want it to not to remove strings like 2<3 or
a type of strings. I want it to not to remove strings like 2<3 or
2<3
Strip_tags function is good solution.
But if you need regex, use expression below.
(?:<|<)\/?([a-z]+) *[^\/(?:<|<)]*?(?:>|>)