Thursday, March 27, 2014

Re: Only subset of HTML supported by HTML class?

Tried UiBinder.  Same result.  Looked on google and this is reported all over the place.  A few hokey, limited case, solutions but no real answer.  I get the impression there is a reason behind it but I don't understand.  I'd like to be able to just insert my own HTML where I want.  Is there some solution to this?


On Thu, Mar 27, 2014 at 8:52 PM, Blake McBride <blake1024@gmail.com> wrote:
Would UIBinder solve this?


On Thu, Mar 27, 2014 at 8:51 PM, Blake McBride <blake1024@gmail.com> wrote:
This doesn't work either:

        rlp.add(new HTML(SafeHtmlUtils.fromSafeConstant("abcde <strong>hello</strong> <em>emphisized</em> the<br>break <b>bold text</b><ol><li>aaaaa</li><li>bbbbbb</li></ol>")));



On Thu, Mar 27, 2014 at 8:02 PM, Blake McBride <blake1024@gmail.com> wrote:
Greetings,

I am trying to render some HTML.  I am using:

       RootLayoutPanel rlp = RootLayoutPanel.get();
        rlp.clear();
        rlp.add(new HTML("abcde <strong>hello</strong> <em>emphisized</em> the<br>break <b>bold text</b><ol><li>aaaaa</li><li>bbbbbb</li></ol>", true));


The <b> and <br> work.  All the rest is ignored.  Why is only a subset supported?  I don't understand why it wouldn't just insert what I specify.  Is there a way for me to add arbitrary html?

Thanks.

Blake




--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment