PDA

View Full Version : Strip HTML tags from $thread[preview]


ThePimp
01-04-2006, 01:26 PM
Is there a way to strip HTML tags from the $thread[preview] variable?

Example:
<center>Debbie Does Dallas</center> <center>from the Arrow collection</center> <table style="border-collapse: collapse;" id="table13"...

Should only say:
Debbie Does Dallas from the Arrow collection...

Anyone know how to do this?

Andreas
01-31-2006, 01:03 AM
threadbit_process

$thread['preview'] = strip_tags($thread['preview']);

gbechtel
01-25-2008, 12:27 PM
threadbit_process

$thread['preview'] = strip_tags($thread['preview']);


Didn't have luck with that one but the edit from this link works ok in 3.6.
https://vborg.vbsupport.ru/showthread.php?t=61372

Only unwanted characters were the occasional / backslash

Marco van Herwaarden
01-26-2008, 07:12 AM
This thread is 2 years old, so information is probably about 3.5 or even 3.0.