diff --git a/public/css/survey-frontend.css b/public/css/survey-frontend.css index 20c437a..8dae382 100644 --- a/public/css/survey-frontend.css +++ b/public/css/survey-frontend.css @@ -1349,3 +1349,12 @@ .survey-shell .ql-editor i { font-style: italic; } + +/* Der Editor erbt sonst das font-weight 600 des umgebenden Labels – Text wirkt dann immer fett. */ +.survey-shell .survey-label .survey-rich-editor, +.survey-shell .ql-editor, +.survey-shell .ql-editor p, +.survey-shell .ql-editor li { + font-weight: 400; + font-style: normal; +} diff --git a/src/EventListener/SurveyDcaListener.php b/src/EventListener/SurveyDcaListener.php index 6b5c4a0..83519c8 100644 --- a/src/EventListener/SurveyDcaListener.php +++ b/src/EventListener/SurveyDcaListener.php @@ -511,7 +511,8 @@ final class SurveyDcaListener { $surveyId = (int) ($row['pid'] ?? 0); $entry = $this->resolveOutlineEntry($surveyId, (int) ($row['id'] ?? 0)); - $title = htmlspecialchars(trim((string) ($row['question'] ?? '')), ENT_QUOTES); + // Contao speichert z. B. Klammern als Entities (() – erst dekodieren, dann sauber escapen. + $title = htmlspecialchars(html_entity_decode(trim((string) ($row['question'] ?? '')), ENT_QUOTES | ENT_HTML5, 'UTF-8'), ENT_QUOTES); if (SurveyQuestionRepository::isSection($row)) { return sprintf(