Rendering pre-formatted html

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

Rendering pre-formatted html

kmo
How do I render a piece of pre-written html in Seaside?

For example, if I have:

renderContentOn: html

| htmlFragment |
        htmlFragment := 'I  am renderedas text>'.
       
Then how do I render this as html code rather than as a literal string?

Thanks in advance for any help.



--
Sent from: http://forum.world.st/Seaside-General-f86180.html
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
kmo
Reply | Threaded
Open this post in threaded view
|

Re: Rendering pre-formatted html

kmo
Sorry - the string came out as html!! - the very effect I'm trying to
emulate! The htmlFragment is a string with html tags in it.



--
Sent from: http://forum.world.st/Seaside-General-f86180.html
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Rendering pre-formatted html

Thomas Brodt-2
if you invoke the following to the html argument of the render method

renderContentOn: html

     html html: '<p>paragraph</p>'

the content is added to the html stream as is.

HTH

Thomas


Am 08.12.2017 um 13:09 schrieb kmo:

> Sorry - the string came out as html!! - the very effect I'm trying to
> emulate! The htmlFragment is a string with html tags in it.
>
>
>
> --
> Sent from: http://forum.world.st/Seaside-General-f86180.html
> _______________________________________________
> seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
kmo
Reply | Threaded
Open this post in threaded view
|

Re: Rendering pre-formatted html

kmo
Thank ou very much. That's great.



--
Sent from: http://forum.world.st/Seaside-General-f86180.html
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside