Should I use htmlentities
with strip_tags
?
I am currently using strip_tags
when adding to database and thinking about removing htmlentities
on output; I want to avoid unnecessary processing while generating HTML on the server.
Is it safe to use only strip_tags
without allowed tags?