Coding Fun Html PHP beginners tutorial 54 – html entities and strip_tags

PHP beginners tutorial 54 – html entities and strip_tags

In this tutorial I show you how to use the htmlentities and strip_tags functions to handle any html elements that users might attempt to input into your site.

Follow me on Facebook:

Follow me on Twitter:

Don’t forget to subscribe:

Donate on PayPal:

xclick&hosted_button_id=DM496T7CTUYAS Donate on…

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

12 thoughts on “PHP beginners tutorial 54 – html entities and strip_tags”

  1. I don't understand why you are trying to teach inputs with gets. You should use Post so your viewers learn the right way

  2. Visualmodo says:

    Photography WordPress theme is a responsive clean and minimal theme for photographer creative portfolio websites. Built with the latest WordPress technology. Photography support responsive layouts so it looks great on all devices. It has predefined styling for photographer, creative designer, design agency and much more 

  3. Terror X says:

    I am new in this new world of php, i have a question
    are there any difference between using htmlentities and strip_tags in a form? if i want to have a safer form in my web.

  4. DarkArly says:

    With that, you can do … a chat ?

  5. David Ashby says:

    Quentin, when saving to a database which is the best method, entities sends gibberish through to the database and strip_tags sends the actual text the user posted. Which would you recommend going in and which method when drawing on that data?

    Where does preg replace come in?


  6. How to insert " or ' as a string without using symbol?

  7. Lokez says:


  8. sanjoy bhui says:


  9. I think there is an extra "ti" in entities in the title

Leave a Reply

Your email address will not be published. Required fields are marked *