It works enclosing the text with XML().
Thanks!
On Tuesday, December 17, 2013 7:29:21 PM UTC-6, Roberto Perdomo wrote:
>
> Try with something like:
>
> {{=A(XML('✖'), _href=URL('default', 'delete', args=[row.id]))}}
>
>
>
>
> 2013/12/17 Omar Meat Boy Gutiérrez <[email protected] <javascript:>>
>
>>
>> I have a table of items with a special column to delete each item. I'd
>> like include a symbol like: ✖ or ✕ or ✗, in this way:
>>
>> X Y Z Delete
>> -----------------------------
>> x y z [✖]
>> x y z [✖]
>>
>> I am trying with:
>>
>> {{=A('✖', _href=URL('default', 'delete', args=[row.id]))}}
>>
>> however my result is more or less:
>>
>> X Y Z Delete
>> -----------------------------
>> x y z [✖]
>> x y z [✖]
>>
>> When I use:
>>
>> <a href=URL="default/delete/row.id">✖</a>
>>
>> it works (symbols are correctly displayed) but I'd like to use A helper
>> because is a more pythonic way to do it.
>>
>> What am I doing wrong!
>>
>> --
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.