Fix autostatic references with html-encoded single/double quotes.

This usually happens if {static "..."} references are used with Markdown
or rST constructs (e.g. [Link]{static "..."}). In such a case, the
resulting HTML is something like:

<a href="{static &quot;...&quot;}">