View Full Version : Text not parsed in category description
October 27th, 2010, 12:27 AM
I am running into a problem when I click on a category. If the listing has linked text, you can see the the html syntax. How do I fix this?
I attached a screenshot to as an example.
October 27th, 2010, 08:50 AM
HMM let me check things and see what I find. I thought we stripped html tags completely out of the showcat display of products to avoid html issues.
November 6th, 2010, 08:32 PM
Was there any luck in finding a solution?
November 6th, 2010, 10:51 PM
I have not seen anything it would help if you tell me what the exact description you are using is. We do strip all html tags from a description on showcat.php
$desc = strip_tags($desc);
November 7th, 2010, 01:26 AM
Here is a link to the description - Arigato Sushi - 805 Restaurant and Business Reviews (http://www.805forums.com/reviews/japanese/p8--arigato-sushi.html)
November 7th, 2010, 08:20 AM
Japanese - 805 Restaurant and Business Reviews (http://www.805forums.com/reviews/g8-japanese.html)
The tags are stripped.
The reason tags are stripped is because the description is limited and when doing so and allowing html tagging then you can break the page.
November 7th, 2010, 09:27 PM
So there is no solution to make that look better in my instance? How do I change the character limit for the description? or What template or file do I edit to delete the description entirely and just have the "product name" and "posted by"?
November 7th, 2010, 10:53 PM
The character limit is in the actual showcat file
if ( strlen($desc) > 175 ) $desc = substr($desc,0,175) . " ... ";
Your issue looks to me like your allowing html and your user has posted full html with target statements etc. strip_tags can only remove tags not erroneous information.
Your free to edit your showcat template and remove whatever you wish.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.