Re: HTML in link titles in the base menu block

Ryan Walker <[email protected]>
Newsgroups gmane.comp.cms.xaraya.user
Message-ID <[email protected]>
thanks John.  the replace will work.
-Ryan


John Cox wrote:
> 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.
> _______________________________________________
> Xaraya_user mailing list
> [email protected]
> http://xaraya.com/mailman/listinfo/xaraya_user
>
>
>   


-- 
Ryan Walker
www.WebCommunicate.net:
Insights and resources for effective websites.
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.