This simple regular expression works:
text.replace(/<[^>]*>/g, '');
It removes all anchors.
Entities, like <
does not contains <, so there is no issue with this regex.
This simple regular expression works:
text.replace(/<[^>]*>/g, '');
It removes all anchors.
Entities, like <
does not contains <, so there is no issue with this regex.