From fa04d7dad9e4f69555eff7966b3be453d935d30b Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Fri, 19 Jan 2024 15:15:00 +0000 Subject: [PATCH] fixes #3653 Closes #3653 Merge request studip/studip!2533 --- lib/classes/Markup.class.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/classes/Markup.class.php b/lib/classes/Markup.class.php index 77628ad1628..dd3ffd883e8 100644 --- a/lib/classes/Markup.class.php +++ b/lib/classes/Markup.class.php @@ -297,13 +297,13 @@ class Markup i img[alt|src|height|width|class|style] li - ol + ol[reversed|start|style] p[style] pre[class] span[style|class] strong u - ul + ul[style] s small sub @@ -401,6 +401,10 @@ class Markup $def->addElement('figcaption', 'Inline', 'Flow', 'Common'); $def->addElement('figure', 'Block', 'Optional: (figcaption, Flow) | (Flow, figcaption) | Flow', 'Common'); + $def->addAttribute('ol', 'reversed', 'Bool'); + $def->addAttribute('ol', 'style', 'Text'); + $def->addAttribute('ul', 'style', 'Text'); + return new \HTMLPurifier($config); } -- GitLab