Re: HTML in link titles in the base menu block

"John Cox" <[email protected]>
Newsgroups gmane.comp.cms.xaraya.user
Message-ID <[email protected]>
On 2/22/07, Ryan Walker <[email protected]> wrote:
>
> Is it possible to use HTML in the titles of links in the base menu
> block?  I need to italicize part of a link title.  I have hooked the
> HTML module to both the base module and the blocks module and have
> checked to make sure <em> is allowed.
>
> I also tried using the html transformoutput API function, like so...
> <xar:set
>
> name="the_title">xarModAPIFunc('html','user','transformoutput',array('extrainfo'
> => $item['title']))</xar:set>
>
> But the <em> is still getting passed to the output like &lt;em&gt;



You probably need to look in the block code.  My guess is the output is
already being xarModPrepForDisplay before you are trying to do anything
else.  BTW, if I am not mistaken the transformoutput is for line breaks if
my memory serves.

The other thing that you could do is in the template just do a replace on
&lt; and &gt; for < >, which would probably be easier.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.