MKDoc:...Encode(3pm)
π NAME π
MKDoc::XML::Encode β the little module that encodes XML entities, bestie. It's a Perl thing (manual page MKDoc:...Encode(3pm), straight out of User Contributed Perl Documentation).
β¨ SYNOPSIS β¨
use MKDoc::XML::Encode;
# $xml is now "Chris' Baloon"
my $xml = MKDoc::XML::Encode->process ("Chris' Baloon");
Like. That's the whole vibe. You hand it a string, it hands you back the XML-safe version. Iconic behaviour, no notes. π
πΈ SUMMARY πΈ
MKDoc::XML::Encode is a very simple module, okay? And what it does is encode these entities right here:
'
"
>
<
&
That's it. That's the list. That's the whole personality. π«Ά
So this module and its counterpart MKDoc::XML::Decode are the duo that MKDoc::XML::Dumper uses to XML-encode and XML-decode literals. They're literally a package deal, yin and yang, main character and their bestie. π¦
π API π
my $xml_encoded = MKDoc::XML::Encode->process ($some_string);
Does what is said in the summary. No secret extra lore, no hidden plot twist β it encodes, you receive. β¨
π AUTHOR π
Copyright 2003 - MKDoc Holdings Ltd.
Author: Jean-Michel Hiver
This module is free software and is distributed under the same license as Perl itself. Use it at your own risk. π (fr fr, your risk, your problem β but like, in a cute way)
π₯ SEE ALSO π₯
MKDoc::XML::DecodeHOβ yes, that's literally how it's printed in the original, I am NOT editing the source's typo era, we respect the archive πMKDoc::XML::Encode
Okay bestie that's the whole page, you ate it, periodt. π This one's from perl v5.36.0, dated 2022-10-13, and it lives under MKDoc:...Encode(3pm). Go encode something and slay. πβ¨π
π¦ where this page comes from
- ubuntu noble: libmkdoc-xml-perl 0.75-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libmkdoc-xml-perl 0.75-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libmkdoc-xml-perl 0.75-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms