if you are using mako templates, you can apply the 'n' filter to turn
of the 'h' filter which I think is enabled by default.
For example, change this:
${h.link_to('FrontPage', h.url_for(action="index",
title="FrontPage"))}
to this:
${h.link_to('FrontPage', h.url_for(action="index",
title="FrontPage")) | n}
Check your project's config/environment.py to see how the
TemplateLookup is configured.
a link to mako's doc on filtering:
http://www.makotemplates.org/docs/filtering.html
On Jan 8, 11:28 am, mk <[email protected]> wrote:
> Thomas G. Willis wrote:
> > if you open up ./your project/lib/helpers.py you will likely see that
> > there's nothing in there but comments
>
> Thanks that's the kick I needed. I import what I need in helpers.py and
> it works now.
>
> But now I have another problem with text rendered with helpers, it
> silently changes all the < and > and other characters like that in HTML
> source:
>
> <a href="/?title=FrontPage">FrontPage</a>
>
> | <a href="/hello/edit?title=">Edit </a>
>
> So "Return to the <a href="/?title=FrontPage">FrontPage</a> | <a
> href="/hello/edit?title=">Edit </a>" is displayed on the page instead of
> being rendered.
>
> Huh? How do I turn that off?
>
> Regards,
> mk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---