DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+9 =
Submit