Filter additional CSS as raw code

Created on 6 February 2025, about 2 months ago

Problem/Motivation

When administrator add additional CSS code in theme settings, it appears as HTML entities into HTML code of the page.

Steps to reproduce

1. Add some CSS (containing html special chars - quotes, <, >, etc) at Insert codes -> CSS Codes section of theme settings.
2. In source code of the page this special chars appers as HTML entities (", <, >

Proposed resolution

Filter twig variable as raw {{ code_css|raw }} in /templates/layout/html.html.twig line 50

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

11.0

Component

Code

Created by

🇺🇦Ukraine fermer

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024