is there a possibility to display SVG-Code in the drop-down list of a split-button in a toolbar. When i try to set the text attribute of the button the SVG source-code gets displayed
3 Answers, 1 is accepted
answered on 27 May 2022, 07:40 AM
Thank you for the clarification.
In the version you are using, the text option of the buttons was vulnerable to XSS attacks. Please refer to this example. Therefore we needed to escape the text which results in the behaviour you are seeing. If you wish to display an image, you can use the imageUrl, spriteCssClass or the icon options.
thanks for the reply. Unfortunately this was not what i was looking for. We had such a toolbar in an older version of our software. And this was done using kendo ui version v2019.3.917. Those shapes you see in the drop-down are svg. So it used to work in that version. And i tried this in the current version of kendo ui and i cannot get it to work as you see in the following Dojo (when selecting v2019 it displays the svg an in the current version it shows the html)