How can i edit this function to now show html tags?
Posted: Wed Sep 16, 2009 11:49 am
Hello, im new to php programming and i want to know what the result would be if i removed "strip_tags" from line 4. What i would want to happen is that it would now show the html tags. Could someone show me the exact code that would allow me to now use html tags for the function on line 4? thank you, any help appreciated.
Code: Select all
// start mod: Product Captions (Short Descriptions)
// by Estelle (http://cubecart.expandingbrain.com)
if (!empty($productResults[$i]['short_description'])) {
$view_cat->assign("TXT_DESC",strip_tags($productResults[$i]['short_description']));
} else {
$view_cat->assign("TXT_DESC",substr(strip_tags($productResults[$i]['description']),0,$config['productPrecis'])."…");
}
// end mod: Product Captions (Short Descriptions)