The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Is there a way to disable html tags?
I have a form with a textarea that when submitted saves to a database...
when I pull the data entered from the text area from the database and display it on my site, I would like to disable all html tags and only allow text.. That way if someone enters <img src=blahblah> instead of showing the image, it will just show the tags... or not allow it at all? I know this can be done, but my brain is broken at the moment. Thanks. |
#2
|
|||
|
|||
If you call the function htmlspecialchars_uni() on a string, it will convert any special html chars to their "enitites" so they will display instead of acting as tags.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|