PDA

View Full Version : Using HTML code or vBcode in thread titles


Darren Lewis
06-01-2002, 06:33 PM
On my forum, some members want to be able to use special HTML characters in the thread titles. EG use & # 235 to get ë or & # 233 to get é or to be able to make certain words in italics in the thread title.

I was able to get the thread title to use this in the main list of threads in the forum, but when viewing that particular thread the bare code was shown instead.

Any ideas?

I know this could be open to abuse by people implanting malicious HTML code in thread titles, but is there anyway to limit it to the special characters - this would be good enough for my forum.

Thanks.

Darren.

Logician
06-01-2002, 09:17 PM
PHP has a nice "strip_tags" command which automatically strips all HTML code from your string except the ones you authorized like:

$subject=strip_tags($subject, '<b><i><u>');

However integrating this command to vbulletin, disabling its default HTML removal and debugging what you did carefully so that you didnt impaired your board's security is another story..