@@laracastsofficial Thanks. Now I understand. I had to rewatch it a few times, but the alert is not showing from the notes-page, but from the one-note-page it is redirected to (htmlspecialchars() was not yet coded there)
Hi, the default values of 2p and 3º args of htmlspecialcharacters funtion is enough or should do like twig and other template engines do, by adding as 2º arg as ENT_QUOTES and 3º arg: UTF-8. ? 🤔 what this do? Why not using the function strip_tags? And if we are creating a web API, should be doing this on inserting into DB? Thanks.
htmlentities() is identical to htmlspecialchars(), except *all* characters which have HTML character entity equivalents are translated. You'll rarely need this. So stick with htmlspecialchars() unless/until you have a specific reason to use htmlentities().
Hello, great content I have a small request can you make a video about how to display img also i have a project and i am using your route system from EP15 and every time i try to import an image from a directory error comes and say that directory is not a route
This tutorials are amazing! Thank you Jeffrey
Thanks. But how to avoid the alert which is still showing after applying htmlspecialchars() at 5:31?
Adding htmlspecialchars() fixes that issue.
@@laracastsofficial Thanks. Now I understand. I had to rewatch it a few times, but the alert is not showing from the notes-page, but from the one-note-page it is redirected to (htmlspecialchars() was not yet coded there)
Hi,
the default values of 2p and 3º args of htmlspecialcharacters funtion is enough or should do like twig and other template engines do, by adding as 2º arg as ENT_QUOTES and 3º arg: UTF-8. ? 🤔
what this do? Why not using the function strip_tags?
And if we are creating a web API, should be doing this on inserting into DB?
Thanks.
What's the difference between htmlspecialcharacters() and htmlentities()? Wich one is better for scaping texts?
htmlentities() is identical to htmlspecialchars(), except *all* characters which have HTML character entity equivalents are translated. You'll rarely need this. So stick with htmlspecialchars() unless/until you have a specific reason to use htmlentities().
Very Use Full, but can we do any thing before submitting in database so we not use htmlspecialcharcters()?
Teacher thank you for teaching.Can we do something before sending to the database so we don't use htmlspecialchars()?
amazing. thank you.
Great videos, thank you
Hello, great content
I have a small request can you make a video about how to display img also
i have a project and i am using your route system from EP15 and every time i try to import an image from a directory error comes and say that directory is not a route
Jeffery, quick question if you don't mind. What editor and theme are you currently using?
PHPStorm with the Carbon theme.
@@laracastsofficial thank you, appreciate it. Love your content. Keep it up 👍