Back to the Learning

Beep Beep. Subscription Required.

Laracasts is packed full with over 1,500 lessons just like this one.
Sign up to get full access or log in to your account and sit back.

Your Teacher | Jeffrey Way

https://laracasts.s3.amazonaws.com/avatars/jeffrey-avatar.jpg's avatar
Hi, I'm Jeffrey. I'm the creator of Laracasts and spend most of my days building the site and thinking of new ways to teach confusing concepts. I live in Orlando, Florida with my wife and two kids.

About This Episode

When building web applications, always assume that the user is malicious. As such, any time you accept and display user input, sanitize it first. Think of this as the equivalent of throwing their input into a sink filled with soapy water. The goal is to clean that HTML as best as we can. Scrub it down in preparation for display. Script tag? Sorry, but no. Inline styles? See ya. Click event handlers? Hell no.

View the source code for this episode on GitHub.

Published on Jan 2nd, 2018.

Ad for sale

Episodes

    1. EPISODE 2 9:26
    2. EPISODE 5 5:14
    3. EPISODE 15 18:47
    4. EPISODE 19 7:37
    5. EPISODE 22 12:32
    6. EPISODE 32 13:51
    7. EPISODE 35 8:31
    8. EPISODE 37 11:44
    9. EPISODE 44 6:15
    10. EPISODE 49 11:08
    11. EPISODE 62 7:48
    12. EPISODE 63 13:50
    13. EPISODE 65 28:03
    14. EPISODE 67 12:14
    15. EPISODE 83 6:40
    16. EPISODE 89 9:32
    17. EPISODE 90 12:50
    18. EPISODE 91 13:34
    19. EPISODE 99 15:28
    20. EPISODE 100 12:12
    21. EPISODE 101 19:29
    22. EPISODE 102 1:58
Ad for sale
Back to Series Button