diff --git a/Web/Models/Entities/Note.php b/Web/Models/Entities/Note.php index b33f1238..762ebef8 100644 --- a/Web/Models/Entities/Note.php +++ b/Web/Models/Entities/Note.php @@ -48,6 +48,7 @@ class Note extends Postable "acronym", "blockquote", "cite", + "span", ]); $config->set("HTML.AllowedAttributes", [ "table.summary", @@ -59,6 +60,8 @@ class Note extends Postable "img.style", "div.style", "div.title", + "span.class", + "p.class", ]); $config->set("CSS.AllowedProperties", [ "float", @@ -68,6 +71,9 @@ class Note extends Postable "max-width", "font-weight", ]); + $config->set("Attr.AllowedClasses", [ + "underline", + ]); $purifier = new HTMLPurifier($config); return $purifier->purify($this->getRecord()->source); diff --git a/Web/Presenters/templates/Notes/List.xml b/Web/Presenters/templates/Notes/List.xml index e5c9c6ec..5849337b 100644 --- a/Web/Presenters/templates/Notes/List.xml +++ b/Web/Presenters/templates/Notes/List.xml @@ -54,6 +54,10 @@ #userContent cite::before { content: "— "; } + + #userContent .underline { + text-decoration: underline; + }
diff --git a/Web/Presenters/templates/Notes/View.xml b/Web/Presenters/templates/Notes/View.xml index 6c57d1c0..d87bddfb 100644 --- a/Web/Presenters/templates/Notes/View.xml +++ b/Web/Presenters/templates/Notes/View.xml @@ -33,6 +33,10 @@ #userContent cite::before { content: "— "; } + + #userContent .underline { + text-decoration: underline; + }