Page 1 of 1

HTML Printing

Posted: Thu Jan 15, 2004 9:48 pm
by Straterra
When printing HTML to the browser, what characters do you need to escape?

Posted: Thu Jan 15, 2004 10:29 pm
by Gen-ik
It depends on how you are printing the HTML.

If you do something like this echo '<form id="aForm">' then you won't have to escape anything. If you do something like this echo "<form id=\"aForm\">" then you will (as you can see) have to escape the quots.