This works fine
descr _ '<hello world>'.
as in #html, the [descr] <> chars are correctly escaped. However, I have a multiline variable, with some newlines. Shouldnt they get escaped to <BR>s?
I know I can add an escapeHtml: false to the addHandlers and get the contents through asHtml to escape them, but that looks more like a workaround than proper usage to me.
Or is there some sexpr tag to escape the newlines?
On Thu, 1 Aug 2002, Ragnar Hojland Espinosa wrote:
This works fine
descr _ '<hello world>'.
as in #html, the [descr] <> chars are correctly escaped. However, I have a multiline variable, with some newlines. Shouldnt they get escaped to <BR>s?
That's a good question. You're probably right - do you want to submit a patch to String>>seaEscapeHtml? Or just file a bug report at bugs.beta4.com and I'll get around to it.
Avi
seaside@lists.squeakfoundation.org