PDA

View Full Version : < in a button doesn't seem to work


jeffburton
03-21-2005, 02:29 PM
In the following example, < does not work, but > does. I am using 3.0b2. BTW, < doesn't work either.

<canvas width="100%" height="100%">
<button text="&lt;"/>
<button text="&gt;"/>
<simplelayout axis="x"/>
</canvas>

jeffburton
03-21-2005, 02:30 PM
whoops, darn html - I meant &amp;#60; doesn't work either.

hqm
03-21-2005, 02:44 PM
Try double quoting it

&amp;lt;

hqm
03-21-2005, 02:45 PM
Ah sh*t, the forums code unescaped me. I meant

&amp;amp;lt;

jeffburton
03-21-2005, 03:42 PM
That's bizarre - it worked. Thanks, but it still seems like some kind of bug.

hqm
03-21-2005, 04:00 PM
Well, the text fields supports a very simple subset of HTML, so if you stick a <b>foo</b> in there, you will get bold text, etc. If you stick a '<' it will look like an unclosed tag.

Maybe we should have an option to text

<text verbatim='true'> or something, to inhibit the
HTML display.

jeffburton
03-21-2005, 04:11 PM
As long as it works - I don't think it's a big deal.