通过正则表达式删除html属性

正则表达式这种东西就是不断学习,不断加强的东西,直接贴代码,js的:

1
src = src.replace(/<([a-zA-Z]+)\s*[^><]*>/g,"<$1>");