Jump to content

Help with a Strip_tags line of code


jonw118

Recommended Posts

Hello - I have a line of code that displays a product description. Currently it is set to strip tags, but I don't want it to.

 

I've tried to get rid of strip_tags a million different ways, but when I do, it breaks the page.

 

How would you suggest I rewrite this line? Thanks for any help!!

 

<?php echo $lc_text = osc_trunc_string(strip_tags($listing['products_description'], '<a><b><em><font><i><s><span><strong><sub><sup><u>'), MASTER_LIST_DESCRIPTION_LENGTH) . ' ';
?>

Link to comment
https://forums.phpfreaks.com/topic/103598-help-with-a-strip_tags-line-of-code/
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.