aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-08-14 22:48:44 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2019-08-14 22:49:13 +0200
commita6a814420ded3973b271d04b29b4d6ad24b6bdf7 (patch)
treea8edf8d782ef8d8473865221d47d4f60750639e7
parent31d576de0c91019d80e465984d4423779e7ccede (diff)
downloadpleroma-a6a814420ded3973b271d04b29b4d6ad24b6bdf7.tar.gz
html.ex: Allow sub and sup elements by default
Closes: https://git.pleroma.social/pleroma/pleroma/issues/1191
-rw-r--r--lib/pleroma/html.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex
index 2fae7281c..06e60cba3 100644
--- a/lib/pleroma/html.ex
+++ b/lib/pleroma/html.ex
@@ -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", [])