Skip to content

Commit

Permalink
add html tag at rewrite_html for content not having html element.
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Mar 14, 2012
1 parent 63beb5a commit b339bd1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Moxy.pm
Expand Up @@ -193,6 +193,7 @@ sub rewrite_html {
$tree->delete; # cleanup :-) HTML::TreeBuilder needs this.

# return result.
$result = '<html>'.$result.'</html>' unless $result =~ /<\s*html/;
return $result;
}

Expand Down

0 comments on commit b339bd1

Please sign in to comment.