Bug Report
Prerequisites
Description
When using the Text & Icon content element in the Bootstrap Package with an SVG file uploaded via the media field (allowed extensions: gif, png, svg), the frontend output displays the raw SVG XML code as text instead of rendering the SVG image correctly.
In contrast, when using PNG or GIF files in the same field, the icon renders correctly.
Steps to Reproduce
- Create a Text & Icon content element in TYPO3 with Bootstrap Package.
- Upload and select an SVG file in the icon media field.
- Render the page and observe that the SVG source code is printed visibly instead of the SVG image being rendered.
- Upload and select a PNG or GIF file in the same field and observe the icon renders correctly.
Expected behavior
SVG files uploaded in the media field should render properly as images in the frontend, similar to PNG or GIF files.
Actual behavior
The frontend output displays the raw SVG XML code as text
Versions
bootstrap_package 15.0.2
typo3 12.4.33