My website is failing xhtml validation because of a few un-encoded ampersands.
I am hoping there is a tag, or some code I can use to convert the '&' to a '&', as it works in menus and the breadcrumb trail.
It happens in 2 places:
1. in the {menutext} udt, here's the code:
Code: Select all
global $gCms;
global $smarty;
$manager =& $gCms->GetHierarchyManager();
$var = 'root_page_menutext';
if( isset($params['assign']) && $params['assign'] != '' )
{
$var = $params['assign'];
}
$result = "NO RESULT";
$thisPage = $gCms->variables['content_id'];
$currentNode = &$manager->sureGetNodeById($thisPage);
while( isset($currentNode) && $currentNode->getLevel() >= 0 )
{
$currentContent =& $currentNode->getContent();
$result = $currentContent->menutext();
$currentNode =& $currentNode->getParentNode();
}
$smarty->assign($var,$result);
Code: Select all
<form id="cntnt01moduleform_1" method="get" action="http://www.lalala.org.uk/cms1/cms2/?mact=Search%2Ccntnt01%2Cdosearch%2C0&cntnt01returnid=109&cntnt01searchinput=lorem&submit=Go&cntnt01origreturnid=15">
Has anyone done this before?
Thanks for any help
Rachael