HTML Printing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Straterra
Forum Regular
Posts: 527
Joined: Mon Nov 24, 2003 8:46 am
Location: Indianapolis, Indiana
Contact:

HTML Printing

Post by Straterra »

When printing HTML to the browser, what characters do you need to escape?
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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.
Post Reply