Answers for "html tag removal regex"

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
0

regex remove html tags

String target = someString.replaceAll("<[^>]*>", "");
Posted by: Guest on March-31-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language