Jump to content

Covert HTML symbols to ASCII


Err
 Share

Recommended Posts

Not really sure it is in fact ASCII or not. The problem is when I input a < (less than) sign into one of my inputs on my form and PHP displays it, it messes up the code on the page where it is displayed on. For example, I typed in "<dog" into one of my inputs, I press submit and PHP tries to display it. The problem is my code now looks like this: <p><b><dog</b> is not valid.</p> I get all sorts of validation errors. Anyone know how I can change certain HTML symbols like < > into < > and avoid any errors of this kind?

Link to comment
Share on other sites

Thank you for your reply. This has helped me a lot. I should of checked the php site to begin with, lol. :)

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
 Share

×
×
  • Create New...