Merge branch 'features/ruby-elements' into 'develop'
authorrinpatch <rinpatch@sdf.org>
Wed, 25 Nov 2020 08:30:58 +0000 (08:30 +0000)
committerrinpatch <rinpatch@sdf.org>
Wed, 25 Nov 2020 08:30:58 +0000 (08:30 +0000)
scrubbers/default: Add ruby element and it's childs

See merge request pleroma/pleroma!3172

priv/scrubbers/default.ex

index ea0480dcd910ff6476fbdb16cf18c6fc91aa7c7f..7b06994de1dce831d5a3d9584cf53d84463b001b 100644 (file)
@@ -47,6 +47,11 @@ defmodule Pleroma.HTML.Scrubber.Default do
   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(:ruby, [])
+  Meta.allow_tag_with_these_attributes(:rb, [])
+  Meta.allow_tag_with_these_attributes(:rp, [])
+  Meta.allow_tag_with_these_attributes(:rt, [])
+  Meta.allow_tag_with_these_attributes(:rtc, [])
   Meta.allow_tag_with_these_attributes(:u, [])
   Meta.allow_tag_with_these_attributes(:ul, [])