Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
pigeon /
node_modules /
htmlparser /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxr-xr-x
2022-06-27 18:41
tests
[ DIR ]
drwxr-xr-x
2022-06-27 18:41
CHANGELOG
1.18
KB
-rw-r--r--
2013-12-20 02:16
LICENSE
1.08
KB
-rw-r--r--
2011-03-07 15:09
README.md
4.89
KB
-rw-r--r--
2012-04-02 02:08
json2.js
16.97
KB
-rw-r--r--
2010-05-05 01:52
package.json
1.57
KB
-rw-r--r--
2022-06-27 18:41
runtests.html
4.58
KB
-rw-r--r--
2012-04-02 02:24
runtests.js
2.85
KB
-rw-r--r--
2010-12-06 17:23
runtests.min.html
4.58
KB
-rw-r--r--
2012-04-02 02:24
runtests.min.js
2.86
KB
-rw-r--r--
2010-12-06 17:23
utils_example.js
1.79
KB
-rw-r--r--
2010-12-06 17:23
Save
Rename
//node --prof --prof_auto profile.js //deps/v8/tools/mac-tick-processor v8.log var sys = require("sys"); var htmlparser = require("./lib/htmlparser"); var html = "<a>text a</a><b id='x'>text b</b><c class='y'>text c</c><d id='z' class='w'><e>text e</e></d><g class='g h i'>hhh</g><yy>hellow</yy><yy id='secondyy'>world</yy>"; var handler = new htmlparser.DefaultHandler(function(err, dom) { if (err) { sys.debug("Error: " + err); } else { sys.debug(sys.inspect(dom, false, null)); var id = htmlparser.DomUtils.getElementById("x", dom); sys.debug("id: " + sys.inspect(id, false, null)); var class = htmlparser.DomUtils.getElements({ class: "y" }, dom); sys.debug("class: " + sys.inspect(class, false, null)); var multiclass = htmlparser.DomUtils.getElements({ class: function (value) { return(value && value.indexOf("h") > -1); } }, dom); sys.debug("multiclass: " + sys.inspect(multiclass, false, null)); var name = htmlparser.DomUtils.getElementsByTagName("a", dom); sys.debug("name: " + sys.inspect(name, false, null)); var text = htmlparser.DomUtils.getElementsByTagType("text", dom); sys.debug("text: " + sys.inspect(text, false, null)); var nested = htmlparser.DomUtils.getElements({ tag_name: "d", id: "z", class: "w" }, dom); nested = htmlparser.DomUtils.getElementsByTagName("e", nested); nested = htmlparser.DomUtils.getElementsByTagType("text", nested); sys.debug("nested: " + sys.inspect(nested, false, null)); var double = htmlparser.DomUtils.getElementsByTagName("yy", dom); sys.debug("double: " + sys.inspect(double, false, null)); var single = htmlparser.DomUtils.getElements( { tag_name: "yy", id: "secondyy" }, dom); sys.debug("single: " + sys.inspect(single, false, null)); } }, { verbose: false }); var parser = new htmlparser.Parser(handler); parser.parseComplete(html);