I've figured it out. It's working consistently on all my setups, it was a
misunderstanding on my part.

Some html was only output if the code was run on the remote server, so I
didn't see the escaping on the local server.


On Sun, Jun 16, 2013 at 10:02 AM, Anthony <[email protected]> wrote:

> You're sure it's the exact same code?
>
>
> On Saturday, June 15, 2013 10:06:30 PM UTC-4, Alexei Vinidiktov wrote:
>
>> Thank you, Anthony. It solves the problem.
>>
>> But I don't understand why I'm not seeing the escaping in my other
>> setups.
>>
>> On 16.06.2013, at 8:56, Anthony <[email protected]> wrote:
>>
>> You should see the escaping in any environment. To avoid it:
>>
>> {{=XML("<strong>Some text here</strong>")}}
>>
>> Anthony
>>
>> On Saturday, June 15, 2013 9:20:26 PM UTC-4, Alexei Vinidiktov wrote:
>>>
>>> Hello,
>>>
>>> I'm having a weird encoding problem in views.
>>>
>>> If I display html code like this in a view:
>>>
>>> {{= "<strong>Some text here</strong>"
>>> }}
>>>
>>> it comes out like this on the resulting page:
>>>
>>> &lt;strong&gt;Some text here&lt;/strong&gt;
>>>
>>> instead of
>>>
>>> <strong>Some text here</strong>
>>>
>>> The problem setup is Ubuntu 13.04 64 bit, Python 2.7.4, web2py 2.5.1,
>>> nginx 1.2.6, uwsgi 1.9.12
>>>
>>> But it seems to work  fine on my other setups: Windows, Mac, even
>>> another Ubuntu version (12.04, 32 bit with Apache and Python 2.7.1).
>>>
>>>
>>> --
>>> Alexei Vinidiktov
>>>
>>  --
>>
>> ---
>> 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 web2py+un...@**googlegroups.com.
>>
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>
>>
>>
>>  --
>
> ---
> 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.
>
>
>



-- 
Alexei Vinidiktov

-- 

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


Reply via email to