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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…