how to store text with html markup

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

how to store text with html markup

zekUs
Hello there,

i am developing a blog engine for entirely personal and educational purposes. I create a compnent to edit and addd new posts. with a textarea i want to enter text with html tags and when it comes to show this data i want the browser to show the text as html.

for example i enter <b>hello</b> and store it, then render it i see exactly <b>hello</b> not hello (bold). i know seaside prevents this behaviour by default for security reasons but somewhere there should be a way of doing something like this.

regards.

--
Zekeriya "zekUs" KOÇ - http://zekzekus.com/

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

RE: how to store text with html markup

Boris Popov, DeepCove Labs (SNN)

Zekeriya,

 

In your rendering methods just use,

 

html html: ‘<strong>hello</strong>’

 

instead of,

 

html text: ‘<strong>hello</strong>’

 

Hope this helps,

 

-Boris

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of zekUs
Sent: 27 April 2011 09:33
To: Seaside - general discussion
Subject: [Seaside] how to store text with html markup

 

Hello there,

i am developing a blog engine for entirely personal and educational purposes. I create a compnent to edit and addd new posts. with a textarea i want to enter text with html tags and when it comes to show this data i want the browser to show the text as html.

for example i enter <b>hello</b> and store it, then render it i see exactly <b>hello</b> not hello (bold). i know seaside prevents this behaviour by default for security reasons but somewhere there should be a way of doing something like this.

regards.

--
Zekeriya "zekUs" KOÇ - http://zekzekus.com/


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

Re: how to store text with html markup

zekUs
ooops!!!

i was sure it has a so easy solution.

thanks for help boris.

2011/4/27 Boris Popov, DeepCove Labs <[hidden email]>

Zekeriya,

 

In your rendering methods just use,

 

html html: ‘<strong>hello</strong>’

 

instead of,

 

html text: ‘<strong>hello</strong>’

 

Hope this helps,

 

-Boris

 

From: [hidden email] [mailto:[hidden email]] On Behalf Of zekUs
Sent: 27 April 2011 09:33
To: Seaside - general discussion
Subject: [Seaside] how to store text with html markup

 

Hello there,

i am developing a blog engine for entirely personal and educational purposes. I create a compnent to edit and addd new posts. with a textarea i want to enter text with html tags and when it comes to show this data i want the browser to show the text as html.

for example i enter <b>hello</b> and store it, then render it i see exactly <b>hello</b> not hello (bold). i know seaside prevents this behaviour by default for security reasons but somewhere there should be a way of doing something like this.

regards.

--
Zekeriya "zekUs" KOÇ - http://zekzekus.com/


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside




--
Zekeriya "zekUs" KOÇ - http://zekzekus.com/

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside