Aha, that gave me an idea. The tags urls are linking to pages with addresses like "/items/browse/tag/lorem"
I checked the command I am using to get the tag links on pages... I am using:
<?php echo item_tags_as_string(); ?>
This automatically links all my tags to pages with urls like "/items/browse/tag/lorem"
So, I went into the application/helpers/ folder and modified "TagFunctions.php" so that the section that reads
/**
* Retrieve a tag cloud of all the tags for the current item.
*
**/
function item_tags_as_cloud($order = 'alpha', $tagsAreLinked = true, $item=null, $limit=null)
{
if (!$item) {
$item = get_current_item();
}
$tags = get_tags(array('sort'=>$order, 'record'=>$item), $limit);
$urlToLinkTo = ($tagsAreLinked) ? uri('items/browse/tag/') : null;
return tag_cloud($tags, $urlToLinkTo);
}
Now reads
function item_tags_as_cloud($order = 'alpha', $tagsAreLinked = true, $item=null, $limit=null)
{
if (!$item) {
$item = get_current_item();
}
$tags = get_tags(array('sort'=>$order, 'record'=>$item), $limit);
$urlToLinkTo = ($tagsAreLinked) ? uri('items/browse?=tags') : null;
return tag_cloud($tags, $urlToLinkTo);
}
Now everything is working, and the html_escape function is returning the tag names.
Thank you for the help!