Recent Topics

[posting] erroneous parsing of HTML <a> tags

Started by on Feb 05, 2011 – Contents updated: Feb 05, 2011

Feb 05, 2011 13:19    

When inserting a usual HTML link into a post (in direct HTML edition mode), for instance


<a href="">Internet Engineering Task Force</a>

b2evolution 3.3.1 generates an HTML document with a properly structured link.

However, each time I insert a link such as:


<a href=""></a>

the system is confused and parses that portion of the document incorrectly. In particular, it seems to view bracketed by <a>...</a> tags as another url, and attempts to insert yet another <a href=...> to deal with it. The result is messy.

The only way around this is to replace every text starting with "www" within the <a>...</a> tags with character references (i.e. substitute w by & #119;)

Feb 05, 2011 15:51

Uncheck the Auto Links Renderer for that particular post (must be in expert mode). Or change the rendering of the Auto Links plugin to be "opt-in" instead of "opt-out." Or uninstall/disable the Auto Links plugin entirely.

Feb 05, 2011 20:00

I'd call it a bug. No idea if this is fixed in 4.x but, it'd make more sense if the autolinks plugin excluded urls that are already part of an <a></a> tag.


Feb 11, 2011 12:13

The auto-links plugin should make the a link anyway so all you need to do in this case is have


on its own and the auto-links plugin will do the rest (unless you wanted to add other attributes to the link).

Definitely a bug in the auto-links plugin but you could just ditch the html parts and let it do its thing


Feb 11, 2011 14:07

I believe that has been fixed in either v3.3.2 or v3.3.3

Form is loading...

Community software – This forum is powered by b2evolution CMS, a complete engine for your website.