Output html string in browser without rendering
Moderator: General Moderators
- SmokyBarnable
- Forum Contributor
- Posts: 105
- Joined: Wed Nov 01, 2006 5:44 pm
Output html string in browser without rendering
Is there a way to output a string that contains html to the browser just so it shows the html code, for testing purposes, and doesn't actually render.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
htmlspecialchars()?
Edit: Don't use htmlentities(), use htmlspecialchars() instead. Why? http://www.phpwact.org/php/i18n/utf-8
Edit: Don't use htmlentities(), use htmlspecialchars() instead. Why? http://www.phpwact.org/php/i18n/utf-8
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: