Jump to content

display html as code in my browser SOLVED with thanks in final post


niche

Recommended Posts

How do you display html as code in a browser?

Edited by niche
Link to comment
Share on other sites

Thanks Ingolme. What do you think about htmlentities()?

Link to comment
Share on other sites

That works, though I prefer html_special_chars() because it only converts parseable characters and not everything. (Meaning it's valid for XML as well.

  • Like 1
Link to comment
Share on other sites

I knew you'd have the back story! Thanks again Ingolme.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...