Hi Matthew,

I'm guessing that his problem could be because htmlList doesn't pass on the
escape parameter when it calls itself recursively for sub lists.

I thought I've submitted an issue for this before, but I didn't! So here it
is:

http://framework.zend.com/issues/browse/ZF-2870

Kind Regards,
- Amr

On Wed, Mar 12, 2008 at 6:23 PM, Matthew Weier O'Phinney <[EMAIL PROTECTED]>
wrote:

> -- 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/
>

Reply via email to