html tags

Where do I add the code?
Before and after what code?
Or replace <?php echo strip_tags($item->introtext,'<img />'); ?>
1 year 7 months ago #7 by Jose

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5182) Offline
Replace
echo JHtmlString::truncate($item->introtext, $introtext_truncate, true, false);  ?>

with
echo strip_tags($item->introtext,'<img />'); ?>
1 year 7 months ago #8 by TemplatePlazza

Please Log in or Create an account to join the conversation.

This replacement continues removing the html tags
1 year 7 months ago #9 by Jose

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5182) Offline
Err sorry, please replace this :
echo JHtmlString::truncate($item->introtext, $introtext_truncate, true, false);  ?>
with this
echo strip_tags($item->introtext,'<a>,<h2>,<h3><p>'); ?>
1 year 7 months ago #10 by TemplatePlazza

Please Log in or Create an account to join the conversation.

This solution works fine allowing the links taps.
Thank you very much for your technical support.
1 year 7 months ago #11 by Jose

Please Log in or Create an account to join the conversation.

  • Posted by TemplatePlazza (5182) Offline
You're very welcome jtusa;)
1 year 7 months ago #12 by TemplatePlazza

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum