Permalink
Browse files

Merge pull request #2 from soh335/feature/opensocial

Feature/opensocial
  • Loading branch information...
2 parents 230d08d + 85f4ef0 commit 88bf8ecf294749da267ff84d89d128c15818c366 Shinichiro Sei committed Feb 14, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/Moxy/Plugin/OpenSocial.pm
@@ -91,6 +91,11 @@ sub response_filter :Hook {
my $res = $args->{response};
if ($res->header('Content-Type') =~ /html/) {
my $tree = HTML::TreeBuilder->new;
+ $tree->implicit_tags(0);
+ $tree->no_space_compacting(1);
+ $tree->ignore_ignorable_whitespace(0);
+ $tree->store_comments(1);
+ $tree->ignore_unknown(0);
$tree->parse_content($res->decoded_content);
for my $t (['a', 'href'], ['form', 'action']) {

0 comments on commit 88bf8ec

Please sign in to comment.