NAME
Mojo::DOM::Role::PrettyPrinter - Add a pretty printer method to
Mojo::DOM
SYNOPSIS
use Mojo::DOM;
my $dom=Mojo::DOM->with_roles('+Role::PrettyPrinter')->new('
Loving it
');
warn $dom->to_pretty_string;
#
#
Loving it
#
DESCRIPTION
Support pretty printing XML documents. The original source for this
function was extracted from XML::Loy.
head1 METHODS
to_pretty_string
Returns the current Mojo::DOM structure as indented XML.
COPYRIGHT AND LICENSE
Copyright (C) 2008-2017, Marcus Ramberg and Nils Diewald
This program is free software, you can redistribute it and/or modify it
under the terms of the Artistic License version 2.0. =head1 SEE ALSO
Mojolicious, Mojolicious::Guides, .