The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Howto strip code?
I would like to strip the input of users.
I want to strip characters from a inputfield like :'{"}[]/ How do I do that? |
#2
|
||||
|
||||
per str_replace would be the easiest:
PHP Code:
|
#3
|
|||
|
|||
Works very well, but it doesn't work with ' or ".
How can I strip the code for those as well? (Or is that unpossible? |
#4
|
||||
|
||||
hmm, it should work with quotes as well.
you just have to put the " into ' and the ' into " ^^ it may be that the the quotes are already htmlspecialized, so you might use that: PHP Code:
|
#5
|
|||
|
|||
Aaah, I tried to do ''' and it gave a parse error ofcourse.
Thanks alot, really helpfull and its working as a charm. |
#6
|
||||
|
||||
you're welcome |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|