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:
@@ -1307,4 +1307,9 @@ HTML
|
||||
expect(cooked).to include("data-theme-a")
|
||||
end
|
||||
|
||||
it "whitelists lang attribute" do
|
||||
cooked = PrettyText.cook("<p lang='fr'>tester</p><div lang='fr'>tester</div><span lang='fr'>tester</span>")
|
||||
expect(cooked).to eq("<p lang=\"fr\">tester</p><div lang=\"fr\">tester</div><span lang=\"fr\">tester</span>")
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user