mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-25 14:01:44 -04:00
12 lines
268 B
JavaScript
12 lines
268 B
JavaScript
var util = require("util"),
|
|
sax = require("./sax");
|
|
|
|
|
|
parser = sax.parser(false);
|
|
|
|
sax.EVENTS.forEach(function (ev) {
|
|
parser["on" + ev] = function() { console.log(util.inspect(arguments)); };
|
|
});
|
|
|
|
parser.write("<span>Welcome,</span> to monkey land").close();
|