SOURCE

console 命令行工具 X clear

                    
>
console
function NoHtml() {
  document.getElementById("theOne").value = document.getElementById("theOne").value.replace( /<a([^>]|\s)*>/g, '');
  document.getElementById("theOne").value = document.getElementById("theOne").value.replace(/<\/a>/g, '');
}
<input type="text" id="theOne" value="<a href=;;>asdf</a>">
<input type="button" onclick="NoHtml()" value="过滤html标签">