-- digitalus_media <[EMAIL PROTECTED]> wrote
(on Wednesday, 12 March 2008, 08:57 AM -0700):
> i am having trouble getting my head around escaping html lists. i am trying
> to use the htmlList helper for navigation lists, but it escapes all of the
> output. what is the best practice here?
By default, it escapes. However, you can turn off escaping by passing a
false value to the escape parameter (fourth parameter):
<?= $this->htmlList($this->items, false, false, false);
You should do this only if you trust the source of the items -- i.e., if
they are not user submitted.
--
Matthew Weier O'Phinney
PHP Developer | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/