You don't have to run the result of AbstractImagePrototype.create through the template, just add it to the SafeHtmlBuilder:
String imageHtml = AbstractImagePrototype.create(Resources.sSingleton.getMyImage()).getHTML(); safeHtmlBuilder.appendHtmlConstant(imageHtml); On Aug 13, 7:12 pm, Steen Laursen <[email protected]> wrote: > Micah Caldwell <[email protected]> wrote: > >SafeHtmlTemplates doesn't like that one either. The output of that ends up > >escaped when I run it through the template: > > ><img onload='this.__gwtLastUnhandledEvent="load";' > >src='http://127.0.0.1:8888/MyProject/clear.cache.gif'style='width: 48px; > >height: 48px; background: url(data:image/png;base64,iVB...mCC) no-repeat 0px > >0px' border='0'&gt; > > >('...' added for brevity) > > >-- > >You received this message because you are subscribed to the Google Groups > >"Google Web Toolkit" group. > >To view this discussion on the web > >visithttps://groups.google.com/d/msg/google-web-toolkit/-/nw0_n7YusWIJ. > >To post to this group, send email to [email protected]. > >To unsubscribe from this group, send email to > >[email protected]. > >For more options, visit this group > >athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
