Minifrontpage free: wrong truncate

Hello,

I discovered that the truncation in default.php is wrong.
This can be sloved by using the better truncate function (more parameters).
See:
api.joomla.org/cms-3/classes/JHtmlString.html

// echo JHtmlString::truncate(strip_tags($item->introtext), $introtext_truncate);
replace by:
echo JHtmlString::truncate($item->introtext, $introtext_truncate, true, false); ?>.

Best regards,
Peter
3 years 4 months ago #1 by Peter

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

Example:
Fill article with:
1234567890 1234567890 1234667890

Limit: 50
3 years 4 months ago #2 by Peter

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

  • Posted by TemplatePlazza (5261) Offline
Hi Peter, ah ok. I missed part that strip_tags is already supported by JHtmlstring . Thanks
3 years 4 months ago #3 by TemplatePlazza

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

Powered by Kunena Forum