I was wondering how on a given post that contains HTML also, to
strip_tags($entry->description);
from char 0 to 300 and from 301 to end of post allow only <b><p><br>
strip_tags($entry->description, '<b><p><br>');
I am looking for a way that does not kill performance though, because I want the page to load fast.
Thank you.
Just strip_tags() the two parts separately: