Rich Text not retaining SVG

0
I have a Rich Text widget which I am using for creating HTML templates for the Email Connector. The problem is that the widget removes any embedded svg images in the HTML code. The sample code is like this: <p>Here's an SVG within the text:</p> <svg width="100" height="50"> <circle cx="50" cy="25" r="20" stroke="black" stroke-width="2" fill="red" /> </svg> The resulting code in Rich Text editor looks like this: <p>Here's an SVG within the text:</p> Any help in this matter is highly appreciated. Thank you in advance!
asked
1 answers
1

Maybe you could try something different. 

 

You could define your HTML using the DocumentTemplate from Mendix Studio PRO. You generate an HTML Document via the template where you customize it as you can. Then you could use the StringFromFile method from the community commons. 

 

https://docs.mendix.com/appstore/modules/community-commons-function-library/#:~:text=StringFromFile%20%E2%80%93%20This%20reads%20the%20contents%20from%20the%20provided%20file%20document%20and%20returns%20it%20as%20string.%20Multiple%20encodings%20are%20supported%20since%20version%207.4.1%20of%20the%20module.

 

You get the string from the document and attach that string to your email message via the email template token. 

answered