The Arcive of vBulletin Modifications Site. |
|
How to remove HTML tags from thread preview (good for HTML-enabled forums especially) Details »»
|
|||||||||||||||||||||||||||
|
How to remove HTML tags from thread preview (good for HTML-enabled forums especially)
Developer Last Online: Jun 2020
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:
PHP Code:
PHP Code:
![]() Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Nice, but why not just
PHP Code:
|
|
#3
|
||||
|
||||
|
Fixed
(You needed unhtmlspecialchars()) first.
|
|
#4
|
||||
|
||||
|
Hmm ... now this code might produce invalid XHTML (thinking of quotes and ampersand).
|
|
#5
|
||||
|
||||
|
*testing*
I'll post back with a full solution when I have one, should take a few minutes only heh
|
|
#6
|
||||
|
||||
|
PHP Code:
|
|
#7
|
||||
|
||||
|
Foolproof solution attached
|
|
#8
|
||||
|
||||
|
Quote:
|
|
#9
|
||||
|
||||
|
You could submit it as a bug and link to this thread if you want
|
|
#10
|
||||
|
||||
|
Quote:
|
![]() |
|
|