scrubbers/default: Add more formatting elements from HTML4 / GoToSocial
Added: acronym, bdo, big, cite, dfn, ins, kbd, q, samp, s, tt, var, wbr
This commit is contained in:
parent
ca1b18ba2d
commit
06c58bce00
|
@ -0,0 +1 @@
|
||||||
|
- scrubbers/default: Add more formatting elements from HTML4 / GoToSocial (acronym, bdo, big, cite, dfn, ins, kbd, q, samp, s, tt, var, wbr)
|
|
@ -36,30 +36,45 @@ defmodule Pleroma.HTML.Scrubber.Default do
|
||||||
Meta.allow_tag_with_these_attributes(:a, ["name", "title", "lang"])
|
Meta.allow_tag_with_these_attributes(:a, ["name", "title", "lang"])
|
||||||
|
|
||||||
Meta.allow_tag_with_these_attributes(:abbr, ["title", "lang"])
|
Meta.allow_tag_with_these_attributes(:abbr, ["title", "lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:acronym, ["title", "lang"])
|
||||||
|
|
||||||
Meta.allow_tag_with_these_attributes(:b, ["lang"])
|
# sort(1)-ed list
|
||||||
Meta.allow_tag_with_these_attributes(:bdi, [])
|
Meta.allow_tag_with_these_attributes(:bdi, [])
|
||||||
|
Meta.allow_tag_with_these_attributes(:bdo, ["dir"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:big, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:b, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:blockquote, ["lang"])
|
Meta.allow_tag_with_these_attributes(:blockquote, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:br, ["lang"])
|
Meta.allow_tag_with_these_attributes(:br, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:cite, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:code, ["lang"])
|
Meta.allow_tag_with_these_attributes(:code, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:del, ["lang"])
|
Meta.allow_tag_with_these_attributes(:del, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:dfn, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:em, ["lang"])
|
Meta.allow_tag_with_these_attributes(:em, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:hr, ["lang"])
|
Meta.allow_tag_with_these_attributes(:hr, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:i, ["lang"])
|
Meta.allow_tag_with_these_attributes(:i, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:ins, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:kbd, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:li, ["lang"])
|
Meta.allow_tag_with_these_attributes(:li, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:ol, ["lang"])
|
Meta.allow_tag_with_these_attributes(:ol, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:p, ["lang"])
|
Meta.allow_tag_with_these_attributes(:p, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:pre, ["lang"])
|
Meta.allow_tag_with_these_attributes(:pre, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:q, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:rb, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:rp, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:rtc, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:rt, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:ruby, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:samp, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:s, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:small, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:strong, ["lang"])
|
Meta.allow_tag_with_these_attributes(:strong, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:sub, ["lang"])
|
Meta.allow_tag_with_these_attributes(:sub, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:sup, ["lang"])
|
Meta.allow_tag_with_these_attributes(:sup, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:ruby, ["lang"])
|
Meta.allow_tag_with_these_attributes(:tt, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:rb, ["lang"])
|
|
||||||
Meta.allow_tag_with_these_attributes(:rp, ["lang"])
|
|
||||||
Meta.allow_tag_with_these_attributes(:rt, ["lang"])
|
|
||||||
Meta.allow_tag_with_these_attributes(:rtc, ["lang"])
|
|
||||||
Meta.allow_tag_with_these_attributes(:u, ["lang"])
|
Meta.allow_tag_with_these_attributes(:u, ["lang"])
|
||||||
Meta.allow_tag_with_these_attributes(:ul, ["lang"])
|
Meta.allow_tag_with_these_attributes(:ul, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:var, ["lang"])
|
||||||
|
Meta.allow_tag_with_these_attributes(:wbr, ["lang"])
|
||||||
|
|
||||||
Meta.allow_tag_with_this_attribute_values(:span, "class", [
|
Meta.allow_tag_with_this_attribute_values(:span, "class", [
|
||||||
"h-card",
|
"h-card",
|
||||||
|
|
Loading…
Reference in New Issue