Jump to content

BBCODEs fail to execute


vividona

Recommended Posts

Hi friends,

 

I made summary to my articles in my index page. but I have a problem with bbcode.

summary show the open code eg [strong] but the closing code [/strong] does not show in summary bcs I already cut my article.

so my bbcode fail to execute.

 

PS: in full article bbcode show nice.

 

$limit = 400;

$summary = $Bod;

if (strlen($summary) > $limit)

$summary = substr($summary, 0, strrpos(substr($summary, 0, $limit), ' ')) . '...';

Link to comment
https://forums.phpfreaks.com/topic/190380-bbcodes-fail-to-execute/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.