Answers for "regex delete html tags from string"

2

regex remove html tags

const s = "<h1>Remove all <b>html tags</n></h1>"
s.replace(new RegExp('<[^>]*>', 'g'), '')
Posted by: Guest on June-24-2020

Code answers related to "regex delete html tags from string"

Code answers related to "Javascript"

Browse Popular Code Answers by Language