Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commitd79340a

Browse files
committed
chore: clean up
1 parenta4e52b8 commitd79340a

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

‎mix.lock‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"mime":{:hex,:mime,"1.3.1","30ce04ab3175b6ad0bdce0035cba77bba68b813d523d1aac73d9781b4d193cf8",[:mix],[],"hexpm"},
4949
"mimerl":{:hex,:mimerl,"1.2.0","67e2d3f571088d5cfd3e550c383094b47159f3eee8ffa08e64106cdf5e981be3",[:rebar3],[],"hexpm"},
5050
"mix_test_watch":{:hex,:mix_test_watch,"0.9.0","c72132a6071261893518fa08e121e911c9358713f62794a90c95db59042af375",[:mix],[{:file_system,"~> 0.2.1 or ~> 0.3",[hex::file_system,repo:"hexpm",optional:false]}],"hexpm"},
51-
"mochiweb":{:hex,:mochiweb,"2.18.0","eb55f1db3e6e960fac4e6db4e2db9ec3602cc9f30b86cd1481d56545c3145d2e",[:rebar3],[],"hexpm"},
51+
"mochiweb":{:hex,:mochiweb,"2.18.0","eb55f1db3e6e960fac4e6db4e2db9ec3602cc9f30b86cd1481d56545c3145d2e",[],[],"hexpm"},
5252
"nanoid":{:hex,:nanoid,"2.0.1","7ddfe8f3abf1a559c3b673878efbe4feb2c81a657e3f0533aa28be5885257674",[:mix],[],"hexpm"},
5353
"parse_trans":{:hex,:parse_trans,"3.3.0","09765507a3c7590a784615cfd421d101aec25098d50b89d7aa1d66646bc571c1",[:rebar3],[],"hexpm"},
5454
"phoenix":{:hex,:phoenix,"1.4.9","746d098e10741c334d88143d3c94cab1756435f94387a63441792e66ec0ee974",[:mix],[{:jason,"~> 1.0",[hex::jason,repo:"hexpm",optional:true]},{:phoenix_pubsub,"~> 1.1",[hex::phoenix_pubsub,repo:"hexpm",optional:false]},{:plug,"~> 1.8.1 or ~> 1.9",[hex::plug,repo:"hexpm",optional:false]},{:plug_cowboy,"~> 1.0 or ~> 2.0",[hex::plug_cowboy,repo:"hexpm",optional:true]},{:telemetry,"~> 0.4",[hex::telemetry,repo:"hexpm",optional:false]}],"hexpm"},

‎test/helper/sanitizer_test.exs‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,18 @@ defmodule GroupherServer.Test.Helper.Sanitizer do
77
aliasHelper.Sanitizer
88

99
describe"[snaitizer test]"do
10-
@tag:wip
1110
test"should strip p h1-6 etc tags"do
1211
html="<p>hello</p><h1>1</h1><h2>2</h2><h3>3</h3><h4>4</h4><h5>5</h5><h6>6</h6>world"
1312

1413
assertSanitizer.sanitize(html)=="hello123456world"
1514
end
1615

17-
@tag:wip
1816
test"disallow ftp urls"do
1917
html="This is <a href=\"ftp://ftp.google.com/test\">FTP test</a>"
2018

2119
assertSanitizer.sanitize(html)=="This is <a>FTP test</a>"
2220
end
2321

24-
@tag:wip
2522
test"alow <a/> with name and title "do
2623
html=
2724
"This is <a href=\"http://coderplanets.com/post/1\" name=\"name\" title=\"title\" other=\"other\">cps</a>"
@@ -30,25 +27,21 @@ defmodule GroupherServer.Test.Helper.Sanitizer do
3027
"This is <a href=\"http://coderplanets.com/post/1\" name=\"name\" title=\"title\">cps</a>"
3128
end
3229

33-
@tag:wip
3430
test"allow mark tag with class attr"do
3531
html="This <p>is</p> <mark class=\"cool-look\" other=\"other\">mark text</mark>"
3632
assertSanitizer.sanitize(html)=="This is <mark class=\"cool-look\">mark text</mark>"
3733
end
3834

39-
@tag:wip
4035
test"allow code tag with class attr"do
4136
html="This <p>is</p> <code class=\"cool-look\" other=\"other\">code string</code>"
4237
assertSanitizer.sanitize(html)=="This is <code class=\"cool-look\">code string</code>"
4338
end
4439

45-
@tag:wip
4640
test"allow b tag with no attr"do
4741
html="This <p>is</p> <b class=\"cool-look\" other=\"other\">text</b>"
4842
assertSanitizer.sanitize(html)=="This is <b>text</b>"
4943
end
5044

51-
@tag:wip
5245
test"allow i tag with no attr"do
5346
html="This <p>is</p> <i class=\"cool-look\" other=\"other\">text</i>"
5447
assertSanitizer.sanitize(html)=="This is <i>text</i>"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp