ePages 6.10 - DE_EPAGES/XML/API/Tidy.pm

Package DE_EPAGES::XML::API::Tidy

@EXPORT_OK
tidy

Functions

tidy

tidy

Beautifies an XML string by indenting elements for improved readability. Returns the original value of $InStr if it does not contain valid XML.

Syntax
$OutStr = tidy( $InStr );
Example
print tidy( '<html><head><title>Test</title></head></html>' );
Input
$InStr (string)
XML string
Return
$OutStr (string)
re-formatted XML string