Permalink
Browse files

Initial push

  • Loading branch information...
1 parent 15e3f74 commit 00ffae78b2cde89ecad9cbc2e3824ff13cdf0cf1 @tautologistics tautologistics committed Mar 31, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 README
View
4 README
@@ -4,8 +4,8 @@ Reads in imperfect HTML and spits out a simple object model.
Usage:
var htmlparser = require("node-htmlparser");
var rawHtml = "Xyz <script language= javascript>var foo = '<<bar>>';< / script><!--<!-- Waah! -- -->";
- var htmlDom = htmlparser4.ParseHtml(rawHtml);
- sys.puts(sys.inspect(htmlDoc, false, null));
+ var htmlDom = htmlparser.ParseHtml(rawHtml);
+ sys.puts(sys.inspect(htmlDom, false, null));
Outputs...
[ { raw: 'Xyz ', data: 'Xyz ', type: 'text' }

0 comments on commit 00ffae7

Please sign in to comment.