MKDoc:...Encode(3pm)

πŸ“¦
version 0.75 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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