Latest Version: 0.9.6.2
  Dashboard > Pylons FAQ > Browse Space > Labels > helpers-faq
  Pylons FAQ Log In | Sign Up   View a printable version of the current page.  
  Label: helpers-faq

Content with label helpers-faq in Pylons FAQ (See content from all spaces)

How can I escape text for inclusion in HTML pages?
Question How can I escape text for inclusion in HTML pages? Answer (short) {{h.util.htmlescape()}} Answer (long) In templates as well as controller functions, you can use {{h.util.htmlescape()}} to safely insert strings in (X)HTML pages. Beware: the single ...
Why doesn't the helper (e.g. text_field) render the 'class' (or other) keyword argument I've passed to it?
Some of the rendering helper functions have reserved keyword argument names (due to name clashes with some of the internally used functions, for example), such as 'class' or 'name' in some cases. Append an underscore character to solve this problem, e.g.: class='header
Site running on a free Atlassian Confluence Open Source Project License granted to Pylons. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.3.3 Build:#645 Feb 13, 2007) - Bug/feature request - Contact Administrators
Top