htmlspecialchars()
Posted: Sat Jun 23, 2007 2:42 pm
I am here to ask about the performance of htmlspecialchars().
I am designing a simple template system that does not parse code, but uses <?php?> breaks in order to insert values within a buffer. With performance in mind, would it be better if I used htmlspecialchars() in the corresponding template that could have unintended output code, or to just run it on the entire output buffer for the page? Will there be a significant difference?
I am designing a simple template system that does not parse code, but uses <?php?> breaks in order to insert values within a buffer. With performance in mind, would it be better if I used htmlspecialchars() in the corresponding template that could have unintended output code, or to just run it on the entire output buffer for the page? Will there be a significant difference?