Determining when or when not to escape output

Posted by Ygam on Stack Overflow See other posts from Stack Overflow or by Ygam
Published on 2010-05-17T05:21:17Z Indexed on 2010/05/17 5:30 UTC
Read the original article Hit count: 246

Filed under:
|

I have a page, where I have approximately 90 items I need to output. Most of them are object properties (I am using ORM so these objects map to my database tables). But the question is, do I have to escape each of those 90 outputs by applying functions to each (in my case, the htmlspecialchars)? Wouldn't that add a bit of an overhead (calling a single function 90 times)?

© Stack Overflow or respective owner

Related posts about security

Related posts about language-agnostic