清除全部标签的属性

正则表达式 清除全部标签的属性 html

 

document.body.innerHTML = document.body.innerHTML.replace(/<([a-zA-Z1-6]+)(\s*[^>]*)?>/g, "<$1>"); 
相关文章
相关标签/搜索