mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: whitelist lang attribute
This commit is contained in:
@@ -136,6 +136,7 @@ const DEFAULT_LIST = [
|
||||
"div.quote-controls",
|
||||
"div.title",
|
||||
"div[align]",
|
||||
"div[lang]",
|
||||
"div[data-*]" /* This may seem a bit much but polls does
|
||||
it anyway and this is needed for themes,
|
||||
special code in sanitizer handles data-*
|
||||
@@ -170,9 +171,11 @@ const DEFAULT_LIST = [
|
||||
"ol",
|
||||
"ol[start]",
|
||||
"p",
|
||||
"p[lang]",
|
||||
"pre",
|
||||
"s",
|
||||
"small",
|
||||
"span[lang]",
|
||||
"span.excerpt",
|
||||
"span.hashtag",
|
||||
"span.mention",
|
||||
|
||||
Reference in New Issue
Block a user