html.ex: Allow sub and sup elements by default
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Wed, 14 Aug 2019 20:48:44 +0000 (22:48 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Wed, 14 Aug 2019 20:49:13 +0000 (22:49 +0200)
Closes: https://git.pleroma.social/pleroma/pleroma/issues/1191
lib/pleroma/html.ex

index 2fae7281c46c30134ec89edf4adc10267539cd9f..06e60cba33494cc0e8b3860b91b17d2af5e66ec1 100644 (file)
@@ -203,6 +203,8 @@ defmodule Pleroma.HTML.Scrubber.Default do
   Meta.allow_tag_with_these_attributes("p", [])
   Meta.allow_tag_with_these_attributes("pre", [])
   Meta.allow_tag_with_these_attributes("strong", [])
+  Meta.allow_tag_with_these_attributes("sub", [])
+  Meta.allow_tag_with_these_attributes("sup", [])
   Meta.allow_tag_with_these_attributes("u", [])
   Meta.allow_tag_with_these_attributes("ul", [])