How would I remove double quotes from all attributes of HTML elements using regular expressions in javascript? I tried the regex provided in this thread: Regex to remove quotes around attributes when possible
It works for most attributes, but if I have an anchor tag with an href like "page2.html" or "page2.html#someid" it doesn't remove the quotes.
Thanks