Help for this page

Select Code to Download


  1. or download this
    print XML::LibXML::Text->new('<&')->toString;
    
  2. or download this
    sub escape_xml {
      XML::LibXML::Text->new(shift)->toString
    }
    
    print escape_xml('<&');