Perlan...t::Tidy(3pm)

πŸ“¦
version 2.2.1 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

πŸ¦‹ Perlanet::Trait::Tidy(3pm) πŸ’–

okay bestie, welcome to Perlanet::Trait::Tidy, straight out of the User Contributed Perl Documentation ✨ it's a little trait that runs your posts through HTML::Tidy before they hit the feed. so clean. so fresh. the glow-up is real πŸ’…


🌸 NAME 🌸

Perlanet::Trait::Tidy β€” run posts through HTML::Tidy 🧚


✨ SYNOPSIS ✨

  my $perlanet = Perlanet->new_with_traits(
    traits => [ 'Perlanet::Trait::Tidy' ]
  );

  $perlanet->run;

literally just drop the trait in and let it cook πŸ”₯


πŸ’– DESCRIPTION πŸ’–

so here's the tea πŸ“ before a post gets added to the aggregated feed, it gets run through HTML::Tidy. every single one. no messy markup making it to the timeline, we don't do that here πŸ’€

πŸŽ€ Configuring πŸŽ€

wanna customise your HTML::Tidy instance? then you override the _build_tidy method, periodt πŸ‘‘

this method takes no input and returns an HTML::Tidy instance. that's it, that's the whole vibe 🌈


πŸ‘‘ ATTRIBUTES πŸ‘‘

🌟 tidy

an instance of HTML::Tidy that's used to tidy up the feed entry contents before they get output. for the default settings, go peek at the source.. πŸ‘€ iykyk


πŸ’œ AUTHOR πŸ’œ

Oliver Charles, <oliver.g.charles@googlemail.com>


Copyright (c) 2010 by Magnum Solutions Ltd.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.


and that's the whole page, bestie 🫢 this gem of a doc is from perl v5.36.0, dated 2023-02-21 β€” mwah, iconic, no notes πŸ’‹βœ¨

πŸ“¦ where this page comes from