error: <...> escaping malformed URI reference

Cause:

An URI contains non-authorized characters. Or the quotes around the URI are not closed.

Example:

error: <a> escaping malformed URI reference

Good<a href="http://www.mozilla.org/one space.html">space</a>
Good<a href="http://www.mozilla.org/one%20space.html">space</a>
Good<a href="http://www.mozilla.org/one+space.html">space</a>
Good<a href="http://www.w3c.org>w3c</a>
Good<a href="http://www.w3c.org">w3c</a>

Solution:

Correct the URI. For the first example, a space should not be contained in URL. (Even if it works in all browsers...). This is described detailed in the RFC1738 (Look for Unsafe)

References: