Reputation: 7940
I need to display raw HTML text inside the textarea without parsing it. Something like below:
<textarea>
<a href="someurl">Click Here</a>
</textarea>
Where I should see anchor tag and all the raw HTML tags. Normally you do following:
<textarea>
<a href="someurl">Click Here</a>
</textarea>
Which will display the unparsed raw anchor in side the textarea.
But in GWT in UiBinder "<a href="someurl">Click Here</a>"
never
gets converted to <a href="someurl">Click Here</a>
inside the textarea.
Is there any workaround for this?
Thanks!
Upvotes: 0
Views: 1691
Reputation: 736
In UIBinder, another way of setting the text of a widget is to put it in the text
attribute of tag. (Under the hood, this will call .setText()
on the underlying widget).
So something like this might work for you (but I have not tried it):
<g:TextArea text="<a href="someurl">Click Here</a>" />
Upvotes: 1