I have some very fundamental questions about the use of the setTagsAllowed and getTagsAllowed methods used with Zend Framework's Zend_Filter_StripTags? Specifically:
- Where should the list of tags defined? In the application's controller?
- Does the array have to
include the <> eg
'<h1>'
or just 'h1'? - Does the array have to include
the closing tags eg
'</h1>'
?
An example would be appreciated.
You could do that. If you're likely to reuse the list elsewhere in your application, you might want to consider using Zend_Registry.
Just 'h1'. For example:
No.
Sure:
Does this answer your question?