Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

remove html between 2 tags javas

var myString = "<table><tr><td>Some text ...<a href='#'>label...</a></td></tr></table";
myString += "<table><tr><td>Some text ...<a href='#'>label...</a></td></tr></table";
myString += "<table><tr><td>Some text ...<a href='#'>label...</a></td></tr></table";

console.log(myString);

var anchorTagsRemoved = myString.replace(/<a.*>.*?</a>/ig,'');
console.log(anchorTagsRemoved);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #html #tags #javas
ADD COMMENT
Topic
Name
7+1 =