mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Clean up sanitization code
- remove html table test, this is soon to be deprecated - move sanitization tests into pretty text.rb - fix up whitelister so it makes a copy of options
This commit is contained in:
@@ -73,11 +73,3 @@ function md(assert, input, expected, text, settings) {
|
||||
%>
|
||||
|
||||
<%= mdtest_suite %>
|
||||
|
||||
test("whitelisted url scheme", function(assert) {
|
||||
md(assert, "[Steam URL Scheme](steam://store/452530)", '<p><a href="steam://store/452530">Steam URL Scheme</a></p>', 'whitelists the steam url', {allowed_href_schemes: "macappstore|steam"});
|
||||
});
|
||||
|
||||
test("forbidden url scheme", function(assert) {
|
||||
md(assert, "[Steam URL Scheme](steam://store/452530)", '<p><a>Steam URL Scheme</a></p>', 'removes the href', {allowed_href_schemes: "macappstore|itunes"});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user