Hello, when displaying ads excerpts when a user do a search (template_search.php), you are counting the HTML code in the length string count. So sometime the text is too short....because it is calculating the HTML code which is invisible to the user when displaying. Also using this function could break HTML code... I really wonder, why you did this that way... here is the code you should change.... $excerpt = substr( $excerpt, 0, 120 );
here is a nice tutorial so you can educate yourself http://alanwhipple.com/2011/05/25/php-truncate-string-preserving-html-tags-words/