Fixed problem with label additional styles for labels

This commit is contained in:
Jan Böhmer 2023-07-02 03:28:17 +02:00
parent 956ed9e8ae
commit d395cf66a0

View file

@ -8,7 +8,8 @@
<meta name="keywords" content="Part-DB, Label, Barcode"> <meta name="keywords" content="Part-DB, Label, Barcode">
<style> <style>
{% include("label_system/labels/label_style.css.twig") %} {% include("label_system/labels/label_style.css.twig") %}
{{ options.additionalCss | escape("html") }} {# We must not escape it here, as the string might contain ", which would be escaped. As user can control the whole HTML, XSS is not really a problem here. #}
{{ options.additionalCss | raw }}
</style> </style>
</head> </head>
<body> <body>