Output Inline SVG

Is it possible to output inline SVG that have been uploaded to Hippo CMS?

Yes, you can output any text in any document. What is your use case?

I think the use case Ryan is describing is he uploaded an svg in the cms and during render he wants to output it as <svg xmlns=“http://www.w3.org/2000/svg” … >

Kind regards

This is also possible. Only, you have to retrieve a binary object, which has an input stream.

[jasper.floor] jasper.floor
https://community.bloomreach.com/u/jasper.floor
September 11

This is also possible. Only, you have to retrieve a binary object, which
has an input stream.

The question is about inlining (see topic) SVG, which is not possible,
using our (best-practice and security conscious) htmlcleaner rules.
Enabling this (by disabling/customizing the htmlcleaner rules) is not
recommended as inline SVG is a known XSS vulnerability vector (and hence
disallowed by default in our CMS).

I think file is uploaded to assets / images folder so, @jasper.floor answer is correct I think, by getting input stream of binary property and printing it as a string (instead of creating a link)

Ate is right. While it is possible, it should not be done lightly.