remove the html tags in javascript
let strippedString = originalString.replace(/(<([^>]+)>)/gi, "");
remove the html tags in javascript
let strippedString = originalString.replace(/(<([^>]+)>)/gi, "");
javascript remove html from text
//remove html tags from a string, leaving only the inner text
function removeHTML(str){
var tmp = document.createElement("DIV");
tmp.innerHTML = str;
return tmp.textContent || tmp.innerText || "";
}
var html = "<div>Yo Yo Ma!</div>";
var onlyText = removeHTML(html); "Yo Yo Ma!"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us