How to remove HTML tags from thread preview (good for HTML-enabled forums especially)
This modification is in the archives.
Don't you just hate it when thread previews show HTMl tags even though browsers don't interprete those tags in popup menus? Well then this hack is just right for you!
This hack will remove all HTML tags such as <b>, <i>, <strong> and even closing tags like </b>, </i>, and </strong> so that they don't show up in the thread preview. It's genius they say! Anyways here we go: open up forumdisplay.php and find PHP Code:
eval('$threadbit .= "' . fetch_template('threadbit') . '";');
PHP Code:
$thread[preview] = eregi_replace('(")','',strip_tags(unhtmlspecialchars($thread[preview]))); // solution #2
PHP Code:
Download No files for download. |