Computing.Net > Forums > Web Development > PHP quotation mark escape

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PHP quotation mark escape

Reply to Message Icon

Name: Spinal
Date: January 22, 2005 at 10:12:48 Pacific
OS: PHP4-ish
CPU/Ram: irrelevant
Comment:

Hello! Im trying to implement a system where a user can enter some HTML code into a text box, it gets saved to a file, then the file can be see as a html file. ALso, the user can modify the file. All is well until the uder decides to put " marks in his text. Php, cleverly, escapes them with \'s BUT in some cases, thats not wanted. Like, if the user wants to put:
<i_mg src ="myImage.jpg">, php will put:
<i_mg src =\"myImage.jpg\"> (underscored to stop ur browser interpreting)
whick kinda screws up the code. The files are all invoked usinmg double quotation marks (") as my server doesn't seem to like single quotation marks ('). Any ideas on how to solve this?
Spina




Sponsored Link
Ads by Google

Response Number 1
Name: Khalid
Date: January 22, 2005 at 14:21:27 Pacific
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: PHP quotation mark escape

PHP quotation mark escape, part 2 www.computing.net/answers/webdevel/php-quotation-mark-escape-part-2/1338.html

trim characters from php filehandle www.computing.net/answers/webdevel/trim-characters-from-php-filehandle/3153.html

Regarding search on GOOGLE www.computing.net/answers/webdevel/regarding-search-on-google/1235.html