[Seaside] how to store text with html markup

Boris Popov, DeepCove Labs boris at deepcovelabs.com
Wed Apr 27 13:34:51 UTC 2011



In your rendering methods just use,


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


instead of,


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


Hope this helps,




From: seaside-bounces at lists.squeakfoundation.org [mailto:seaside-bounces at lists.squeakfoundation.org] 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.


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110427/711210b8/attachment.htm

More information about the seaside mailing list