Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

regex remove html tags

const s = "<h1>Remove all <b>html tags</n></h1>"
s.replace(new RegExp('<[^>]*>', 'g'), '')
Comment

js regex remove html tags

var regex = /(<([^>]+)>)/ig
,   body = "<p>test</p>"
,   result = body.replace(regex, "");

console.log(result);

console.log($('<p>test</p>').text());
Comment

regex remove html tags

String target = someString.replaceAll("<[^>]*>", "");
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript clear canvas 
Javascript :: regex remove multiple spaces 
Javascript :: javascript check if variable exists 
Javascript :: scroll to element jquery 
Javascript :: While trying to resolve module `idb` from file 
Javascript :: google hosted jquery 
Javascript :: body-parser deprecated undefined extended provide extended option 
Javascript :: zip code regex 
Javascript :: disable inputetext in react native 
Javascript :: how to wait 1 second in javascript 
Javascript :: reactjs .htaccess 
Javascript :: regex pattern for positive numbers only 
Javascript :: how to color console.log 
Javascript :: exclude node_modules from tree command 
Javascript :: angular clone array without reference 
Javascript :: mysql json_extract remove quotes 
Javascript :: iterate object javascript 
Javascript :: how to link javascript to html and css 
Javascript :: remove yellow warning react native emulator 
Javascript :: html5 store object in localstorage 
Javascript :: js date add 1 day 
Javascript :: updating node js ubuntu 
Javascript :: install react 
Javascript :: serialize and send form data jquery ajax 
Javascript :: get every member of a server discord js 
Javascript :: check if path is folder js 
Javascript :: sort array by date moment 
Javascript :: select element by id js 
Javascript :: kill all node process ubunut 
Javascript :: how to remove backslash from string in javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =