A simple TagSoup wrapper for RingoJS.
It exports a single function, parse
, which accepts either a URL or an HTML document as string and returns an E4X XML object.
var page = require("wraps-tagsoup").parse("http://news.ycombinator.com/");
default xml namespace = page.namespace();
[a.@href for each (a in page..a) if (String(a.text()).match(/\d+ comments?/))]
wraps-tagsoup is available under the same license as RingoJS.
The TagSoup library bundled with this package is licensed under the Apache License 2.0.