packages feed

html-conduit 1.1.0 → 1.1.0.1

raw patch · 2 files changed

+4/−1 lines, 2 files

Files

html-conduit.cabal view
@@ -1,5 +1,5 @@ Name:                html-conduit-Version:             1.1.0+Version:             1.1.0.1 Synopsis:            Parse HTML documents using xml-conduit datatypes. Description:         This package uses tagstream-conduit for its parser. It automatically balances mismatched tags, so that there shouldn't be any parse failures. It does not handle a full HTML document rendering, such as adding missing html and head tags. Homepage:            https://github.com/snoyberg/xml
test/main.hs view
@@ -36,6 +36,9 @@         it "multiple root elements" $             X.parseLBS_ X.def "<html><foo><bar>baz&amp;foobar;</bar></foo><foo/></html>" @=?             H.parseLBS        "<foo><bar>baz&foobar;</foo><foo>"+        it "doesn't strip whitespace" $+            X.parseLBS_ X.def "<foo>  hello</foo>" @=?+            H.parseLBS        "<foo>  hello</foo>"     describe "HTML parsing" $ do         it "XHTML" $             let html = "<html><head><title>foo</title></head><body><p>Hello World</p></body></html>"