in reply to Re^4: Vertical Tab (\x0b) in XML::LibXML
in thread Vertical Tab (\x0b) in XML::LibXML

No. I make one pass ... removeInvalidChars

Um,

sub XML::LibXML::Node::toSanitaryString { my( $node ) = @_; return 'XML::LibXML'->new( qw/ recover 2 / ) ->load_xml(string => $node->toString )->toString; }
All that is left is to supress the "xmlEscapeEntities : char out of range" warning toSanitaryString generates