mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FEATURE: whitelist data for themes
This commit is contained in:
@ -1262,4 +1262,9 @@ HTML
|
||||
HTML
|
||||
end
|
||||
|
||||
it "has a proper data whitlist on div" do
|
||||
cooked = PrettyText.cook("<div data-theme-a='a'>test</div>")
|
||||
expect(cooked).to include("data-theme-a")
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user