[Laszlo-dev] <text> vs. html

P T Withington ptw at pobox.com
Tue Nov 11 09:36:33 PST 2008


I am confused.

If I say:

   <text text="<testing>" />

I see nothing.

I _thought_ I remembered that if you wanted to write html into a text  
node, you would set the `html` attribute and that setting the `text`  
attribute would, by default, not interpret `<` as html.  Did I imagine  
this?  Or just confuse our text nodes with those of HTML?

It seems really sad to me that I have to say:

   <text text="${this.escapeText('<testing>')}" />

to make it work.  Also, `escapeText` is a terrible name (since it is  
really escaping XML, not text).

Can we fix this, or are there actually legacy programs that depend on  
writing html markup into <text>?  I would think if you wanted to write  
html markup, you ought to be using the <html> tag?


More information about the Laszlo-dev mailing list