The first argument in form.Input (Checkbox is such an object) is the
name of the input, which is escaped because it becomes the
'name="foobar"' attribute, and could break your html if it wasn't
escaped. webpy also escapes the "description" attribute, which
defaults to the name value as well.  There isn't an obvious way around
what you're looking for unfortunately.

You might have luck playing with the "pre" and "post" attributes,
which do not get escaped.  Something like:

web.form.Checkbox('hello', pre='<a href="/">Hello</a>')

Hope that helps!

Cheers,
Justin

On Dec 1, 10:51 pm, Eviatar <eviatarb...@gmail.com> wrote:
> Hello,
>
> I am new to web.py and have been having issues with websafe escaping
> characters. I know that when using a form in a template you can do $:form
> to stop escaping of characters. However, this doesn't work for form
> parameters.
>
> For example, web.form.Checkbox('<a href="http://www.google.ca/";>Hello</a>',
> id='Testing') does not produce a clickable link, even when using the $:
> prefix in the template.
>
> Thank you in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to webpy@googlegroups.com.
To unsubscribe from this group, send email to 
webpy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/webpy?hl=en.

Reply via email to