how do you not encode text?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how do you not encode text?

SeanTAllen
seaside 3:

i have text, that is an html snippet that needs to be inserted onto
the canvas as is, like:

<img src="http://example.com">

but if you just do

canvas render: '<img src="http://example.com">'

it encodes the < and >.

how can i turn off encoding?
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: how do you not encode text?

SeanTAllen
ramon kindly answered on twitter.

canvas html

sometimes i'm amazed by the simple little seaside things i don't know.
and managed to miss when browsing the class.

On Sun, Jan 3, 2010 at 1:33 AM, Sean Allen <[hidden email]> wrote:

> seaside 3:
>
> i have text, that is an html snippet that needs to be inserted onto
> the canvas as is, like:
>
> <img src="http://example.com">
>
> but if you just do
>
> canvas render: '<img src="http://example.com">'
>
> it encodes the < and >.
>
> how can i turn off encoding?
>
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: how do you not encode text?

Lukas Renggli
For the record, it is

    html html: '<img src="http://example.com">'

Lukas

2010/1/3 Sean Allen <[hidden email]>:

> ramon kindly answered on twitter.
>
> canvas html
>
> sometimes i'm amazed by the simple little seaside things i don't know.
> and managed to miss when browsing the class.
>
> On Sun, Jan 3, 2010 at 1:33 AM, Sean Allen <[hidden email]> wrote:
>> seaside 3:
>>
>> i have text, that is an html snippet that needs to be inserted onto
>> the canvas as is, like:
>>
>> <img src="http://example.com">
>>
>> but if you just do
>>
>> canvas render: '<img src="http://example.com">'
>>
>> it encodes the < and >.
>>
>> how can i turn off encoding?
>>
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>



--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside