summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-11-25 00:36:46 +0100
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-11-25 00:40:21 +0100
commit3cfc20083ecc804713eb90cae6e4dec60d353fa5 (patch)
tree93cb4c29aa6f2ed66a9b5ab4a09c3bf8e0399f61 /priv
parente07f8f8aa5f53e2746b823559742f597348080f8 (diff)
scrubbers/default: Add ruby element and it's childs
This allows to format Japanese furigana (aka ruby) notation. Present in XHTML 1.1, HTML 5 and later. Absent in XHTML 1.0, HTML 4 and earlier. See https://www.w3.org/TR/ruby/
Diffstat (limited to 'priv')
-rw-r--r--priv/scrubbers/default.ex5
1 files changed, 5 insertions, 0 deletions
diff --git a/priv/scrubbers/default.ex b/priv/scrubbers/default.ex
index ea0480dcd..7b06994de 100644
--- a/priv/scrubbers/default.ex
+++ b/priv/scrubbers/default.ex
@@ -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, [])