Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex remove html tags

const s = "<h1>Remove all <b>html tags</n></h1>"
s.replace(new RegExp('<[^>]*>', 'g'), '')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #remove #html #tags
ADD COMMENT
Topic
Name
5+6 =