Thursday, March 27, 2014

Re: Only subset of HTML supported by HTML class?

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