HTML::ElementRaw(3pm)
π HTML::ElementRaw(3pm) π
okay so bestie, welcome to HTML::ElementRaw(3pm) β the lil Perl module that lets you shove raw HTML straight into your HTML::Element tree and have it come out the other side exactly how you typed it. no escaping, no vibes-crushing entity encoding, just your HTML living its truth. β¨
πΈ NAME πΈ
HTML::ElementRaw β a Perl extension for HTML::Element(3). that's it, that's the whole identity. π
β¨ SYNOPSIS β¨
use HTML::ElementRaw;
$er = new HTML::ElementRaw;
$text = '<p>I would like this HTML to not be encoded</p>';
$er->push_content($text);
$h = new HTML::Element 'h2';
$h->push_content($er);
# Now $text will appear as you typed it, non-escaped,
# embedded in the HTML produced by $h.
print $h->as_HTML;
likeβ¦ look at that. you made a raw lil element, you fed it your precious un-encoded , you tucked it inside an h2, and the print just works. no notes. π«Ά
π DESCRIPTION π
okay so here's the tea, bestie: this module gives you a way to graft raw HTML strings into your HTML::Element(3) structures. iconic behavior honestly.
since these represent raw text, they can only ever be leaves in your HTML element tree. no children under them, no branching, they're a leaf, they said so. π
the only methods that are of any real use in this degenerate element are:
push_content()β andas_HTML()
and that's genuinely the whole toolkit, no cap. the push_content() method will simply prepend the provided text to the current content. yes, prepend, not append β the way that it goes on the front is so real.
and plot twist: if you happen to pass an HTML::element to push_content, the output of the as_HTML() method in that element will be prepended. so it gets stringified first and then slid in at the front, basically. π
π REQUIRES π
HTML::Element(3)β yeah babe, it needs the parent module. obviously. π
π AUTHOR π
Matthew P. Sisk, <sisk@mojotoad.com> β the main character who wrote this. respect. π«‘
π¦ COPYRIGHT π¦
Copyright (c) 1998-2010 Matthew P. Sisk. All rights reserved. All wrongs revenged. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
(not "all wrongs revenged" π that's the most unhinged-cute license line i've ever read and i'm obsessed with it β also fr fr, same terms as Perl itself, go wild.)
π₯ SEE ALSO π₯
HTML::Element(3)HTML::ElementSuper(3)HTML::Element::Glob(3)HTML::ElementTable(3)perl(1)
the whole friend group, honestly. go read them, they ate. πβ
and that's the whole page, bestie!! this was perl v5.40.1, dated 2025-03-27, and it's the HTML::ElementRaw(3pm) manpage, signing off like the icon it is. mwah. π
πβ¨
π¦ where this page comes from
- debian trixie: libhtml-element-extended-perl 1.18-2 Β· GPL OR Artistic-1.0-Perl
- ubuntu resolute: libhtml-element-extended-perl 1.18-2 Β· GPL OR Artistic-1.0-Perl
- ubuntu stonking: libhtml-element-extended-perl 1.18-2 Β· GPL OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms