dcole.ath.cx Posted April 4, 2006 Share Posted April 4, 2006 So...I have a script that looks like this:$var = "blah";PHP(HTML(JavaScript(HTML($var))))I need " " or \" \" or ' ' or \' \' around where each ( ) is.but it needs to be in the correct order! What is that order??? If it is in the wrong order you will get things like this:source: <img src=\' \="" file : <img src=\' $filePath \' source: width="\'20\'"file : width=\'20\'ALSO These errors are not because of " ' " ' ... or " \" " \" ... Link to comment Share on other sites More sharing options...
calvin182 Posted April 4, 2006 Share Posted April 4, 2006 I really don't get what you're trying to do. Perhaps if you post the codes you want to put together in that order somebody could figure it out. Link to comment Share on other sites More sharing options...
DarkElf Posted April 4, 2006 Share Posted April 4, 2006 There is a function called add slashes which you can perform on a string like so: $string = addslashes ($string) That will add a backslash to all character's that need escaping, Is that what you are after? Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted April 5, 2006 Author Share Posted April 5, 2006 I figered it out... nvm! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now