Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.17.198
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libhtml-parser-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
hanchors
1.17
KB
-rwxr-xr-x
hbody
729
B
-rwxr-xr-x
hdisable
740
B
-rwxr-xr-x
hdump
708
B
-rwxr-xr-x
hform
2.44
KB
-rwxr-xr-x
hlc
717
B
-rwxr-xr-x
hrefsub
3
KB
-rwxr-xr-x
hstrip
1.73
KB
-rwxr-xr-x
htext
612
B
-rwxr-xr-x
htextsub
936
B
-rwxr-xr-x
htitle
461
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : hdisable
#!/usr/bin/perl use strict; use warnings; use HTML::Parser (); use HTML::Entities qw(encode_entities); sub disable_tags_but { my ($text, $allowed_tags) = @_; my @text; my %allowed_tag = map { $_ => 1 } @{$allowed_tags || []}; my $tag_h = sub { my ($tag, $text) = @_; $text = encode_entities($text, "<") unless $allowed_tag{$tag}; push(@text, $text); }; HTML::Parser->new( start_h => [$tag_h, 'tagname, text'], end_h => [$tag_h, 'tagname, text'], default_h => [\@text, '@{text}'], )->parse($text)->eof; return join("", @text); } # # Test it # print disable_tags_but(<<EOT, [qw(a br)]) unless caller; Test <foo> <a href="...">...</a> </bar> EOT
Close