The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Eeh, anyway, I've got a variable, $data, and I want to put it into an <a href="blah bal&data="($data)">
etc, but $data has double/single quotes in it, and ">" and "<" signs... is there any way to get php to add slashes to any non-letter or single quote character? (actual php code used) PHP Code:
|
#2
|
|||
|
|||
![]()
What do you mean? PHP doesn't care about < or > in code, and simply escape quotes when necessary (add a backslash before them).
|
#3
|
||||
|
||||
![]()
ah yes, BUT, the $data exists in a mySQL DB, and it is pulled directly from there placed in an <a href=""> tag, and any innate quotes in the data disrupt the tag... I was wondering if there was a way to get php to escape all the quotes in that string.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|