Files: d456a6cc8589489e558e6164750474ed2cfc961e / test / test-79-npm / sax / sax.js
219 bytesRaw
1 | ; |
2 | |
3 | var sax = require('sax'); |
4 | var parser = sax.parser(true); |
5 | |
6 | parser.onopentag = function (node) { |
7 | if (node.name === 'hello') { |
8 | console.log('ok'); |
9 | } |
10 | }; |
11 | |
12 | parser.write('<hello>World!</hello>').close(); |
13 |
Built with git-ssb-web