• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Not a bug Inconsistent use of double quotes in HTML links


Well-known member
XenForo has always used a single quote in HTML links.


The inconsistency comes with the newly introduced feature called "Convert URLs to Page Titles". This feature creates HTML links using double quotes:

Please change the following XenForo code:


Line# 261 and 282

$tag = '[URL="' . $link['url'] . '"]' . $linkTitle . '[/URL]';
change to:

$tag = "[URL='" . $link['url'] . "']" . $linkTitle . "[/URL]";
Thank you.

Chris D

XenForo developer
Staff member
XF supports either syntax for URLs and both are valid.

Regardless as to whether we change this, or not, you should assume that the software or users of the software may, at times, use syntax that isn't always consistent, as long as it is valid to do so. With that in mind, if you're reporting this because it causes a problem with one of your add-ons, you should be ensuring your code can cope with either syntax.