You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can one embed SVG into a j2html-generated document?
I am already building my SVG with Apache's batik-svggen project which has the SVG in a DOM implementation and can generate appropriate text. I would like to be able to wrap my existing generated SVG in an HTML document.
My apologies if this is documented somewhere, but I haven't been able to find any way to do so.
The text was updated successfully, but these errors were encountered:
This should be possible using the TagCreator.rawHtml(String html) method. It will take whatever string you give it and append it directly to the output when it is rendered. Example:
How can one embed SVG into a j2html-generated document?
I am already building my SVG with Apache's batik-svggen project which has the SVG in a DOM implementation and can generate appropriate text. I would like to be able to wrap my existing generated SVG in an HTML document.
My apologies if this is documented somewhere, but I haven't been able to find any way to do so.
The text was updated successfully, but these errors were encountered: