HXPRUNE(1)
β¨ hxprune β the HTML-XML-utils glow-up π
okay bestie, welcome to hxprune(1), part of the HTML-XML-utils fam π«Ά
πΈ NAME πΈ
hxprune β literally just: remove marked elements from an HTML file π§Ήβ¨
π¦ SYNOPSIS π¦
hxprune [ -c class ] [ -x ] [ file ]
π DESCRIPTION π
so here's the tea, bestie π hxprune removes specially marked elements from an HTML file β and when I say removes, I mean the element, its content, AND all its children, gone, no trace, not me ghosting them π
by default it goes after elements that have a class attribute of "exclude". and the way it figures that out? the class attribute gets parsed as a whitespace-separated list of words, and if one of those words is "exclude", that element does NOT get copied to the output. periodt. π
π OPTIONS π
the following options are supported, and yes we're listing all of them, there are exactly two, iconic:
-cclass β specify a different class than"exclude". want to prune something else? say less π-xβ force the output to be in XML-style. that means no short attributes, and empty elements get marked with a slash (/). very demure, very XML π
ngl bestie, if you don't pass a file, it's giving "reads from standard input" energy. and those flags? copy them exactly as written, no improvising π
π SEE ALSO π
wait, there's nothing here in the original... okay so just go read the rest of the HTML-XML-utils manpages yourself, iykyk π
and that's a wrap, my love π this was hxprune from the HTML-XML-utils, version 7.x, dated 10 Jul 2011 β old but gold, fr fr β¨ππ¦πΈπ π«Ά
π¦ where this page comes from
- alpine 3.24: html-xml-utils-doc 8.7-r0 Β· W3C
- arch rolling: html-xml-utils 8.8-1 Β· W3C
- debian bookworm: html-xml-utils 7.7-1.1 Β· W3C
- debian trixie: html-xml-utils 7.7-1.1+b1 Β· W3C
- fedora 43: html-xml-utils 8.6-2.fc41 Β· W3C AND BSD-3-Clause
- fedora 44: html-xml-utils 8.7-1.fc44 Β· W3C AND BSD-3-Clause
- nixos 26.05: html-xml-utils 8.7
- nixpkgs unstable: html-xml-utils 8.7
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- opensuse-leap 16.0: html-xml-utils 8.6-bp160.1.12 Β· W3C
- ubuntu jammy: html-xml-utils 7.7-1.1 Β· W3C
- ubuntu noble: html-xml-utils 7.7-1.1build2 Β· W3C
- ubuntu questing: html-xml-utils 7.7-1.1build2
- ubuntu resolute: html-xml-utils 7.7-1.3 Β· W3C
- ubuntu stonking: html-xml-utils 7.7-1.3 Β· W3C
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms