Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

validate those links in XHTML


Recommended Posts

for those that may be in the process of switching/have switched/plan on switching to the XHTML doctype, links with & in them will not validate.


a simple solution is to replace the & in links with & ... browsers will still read the links just the same and you will have a valid XHTML document as far as links are concerned.


the way I did it was in catalog/includes/functions/html_output.php in the function tep_href_link, replace:

    return $link;



    $link = str_replace('&', '&', $link);

   return $link;

The only thing necessary for evil to flourish is for good men to do nothing

- Edmund Burke

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...