@@ -12,13 +12,14 @@ func TestHTML2Text(t *testing.T) {
1212 Convey ("Links" , func () {
1313 So (HTML2Text (`<div></div>` ), ShouldEqual , "" )
1414 So (HTML2Text (`<div>simple text</div>` ), ShouldEqual , "simple text" )
15- So (HTML2Text (`click <a href="test">here</a>` ), ShouldEqual , "click test" )
16- So (HTML2Text (`click <a class="x" href="test">here</a>` ), ShouldEqual , "click test" )
17- So (HTML2Text (`click <a href="ents/'x'">here</a>` ), ShouldEqual , "click ents/'x'" )
18- So (HTML2Text (`click <a href="javascript:void(0)">here</a>` ), ShouldEqual , "click " )
19- So (HTML2Text (`click <a href="test"><span>here</span> or here</a>` ), ShouldEqual , "click test" )
20- So (HTML2Text (`click <a href="http://bit.ly/2n4wXRs">news</a>` ), ShouldEqual , "click http://bit.ly/2n4wXRs" )
21- So (HTML2Text (`<a rel="mw:WikiLink" href="/wiki/yet#English" title="yet">yet</a>, <a rel="mw:WikiLink" href="/wiki/not_yet#English" title="not yet">not yet</a>` ), ShouldEqual , "/wiki/yet#English, /wiki/not_yet#English" )
15+ So (HTML2Text (`click <a href="test">here</a>` ), ShouldEqual , "click here <test>" )
16+ So (HTML2Text (`click <a class="x" href="test">here</a>` ), ShouldEqual , "click here <test>" )
17+ So (HTML2Text (`click <a href="ents/'x'">here</a>` ), ShouldEqual , "click here <ents/'x'>" )
18+ So (HTML2Text (`click <a href="javascript:void(0)">here</a>` ), ShouldEqual , "click here" )
19+ So (HTML2Text (`click <a href="test"><span>here</span> or here</a>` ), ShouldEqual , "click here or here <test>" )
20+ So (HTML2Text (`click <a href="http://bit.ly/2n4wXRs">news</a>` ), ShouldEqual , "click news <http://bit.ly/2n4wXRs>" )
21+ So (HTML2Text (`<a rel="mw:WikiLink" href="/wiki/yet#English" title="yet">yet</a>, <a rel="mw:WikiLink" href="/wiki/not_yet#English" title="not yet">not yet</a>` ), ShouldEqual , "yet </wiki/yet#English>, not yet </wiki/not_yet#English>" )
22+ So (HTML2Text (`click <a href="one">here<a href="two"> or</a><span> here</span></a>` ), ShouldEqual , "click here or <one> here <two>" )
2223 })
2324
2425 Convey ("Inlines" , func () {
0 commit comments