Need to escape the escapes \\\\\\
Posted: Sat Jun 12, 2010 6:08 pm
How do I stop php from inserting escapes when I write a block of html code to a file? (or maybe I don't want to!)
I'm saving .txt files with html code from a form and saving them to a file to later be used as includes. Problem is that something like an image file that should look like this:
<img src="images/bioPortrait.jpg" align="left" border="1" hspace="6" vspace="6">
Looks like this when I include it:
<img src=\"images/bioPortrait.jpg\" align=\"left\" border=\"1\" hspace=\"6\" vspace=\"6\">
and therefore doesn't work.
This has to be a common problem with an easy answer but my brain hurts and I can't figure it out.
thanks so much
ChopWood
I'm saving .txt files with html code from a form and saving them to a file to later be used as includes. Problem is that something like an image file that should look like this:
<img src="images/bioPortrait.jpg" align="left" border="1" hspace="6" vspace="6">
Looks like this when I include it:
<img src=\"images/bioPortrait.jpg\" align=\"left\" border=\"1\" hspace=\"6\" vspace=\"6\">
and therefore doesn't work.
This has to be a common problem with an easy answer but my brain hurts and I can't figure it out.
thanks so much
ChopWood