I'm a little confused by what I should use to escape user output.
Firstly, there's the Zend_Filter_Input
class which looks like it might do what I want but seems oriented towards batch filtering lots of items. At the moment I only want to filter one. Also I'm a little confused by the definition of escapers compared to filters. What's the difference between the StringTrim
filter and the escaper?
Is there a better solution for escaping single elements?