Javascript REGEX-不带引号的所有属性
我有以下html字符串Javascript REGEX-不带引号的所有属性,javascript,regex,attributes,Javascript,Regex,Attributes,我有以下html字符串 <span onclick="Popup=window.open('C_SPD').URL;','Popup','menubar=No,toolbar=No,scrollbars=Yes,width=600,height=500,top=20,left=60,resizable=yes');return fallse;" href="#">xyz</span> <a href=mailto@abc.com?subject=LongTerm
<span onclick="Popup=window.open('C_SPD').URL;','Popup','menubar=No,toolbar=No,scrollbars=Yes,width=600,height=500,top=20,left=60,resizable=yes');return fallse;" href="#">xyz</span>
<a href=mailto@abc.com?subject=LongTerm third=third>esc@abc.com</a>
xyz
我需要在缺少属性的地方加上双引号。这是一项解析工作。使用服务器端语言或节点。在html5中,任何情况下都没有有效的引号。顺便说一句,你有一个输入错误
return fallse代码>我需要用javascriptHTML修复它Tidy是你最好的朋友。参考。