hxprune(1)

hxprune1

Remove marked elements from an html file

Usage

hxprune [-c class] [-x] [file]

Overview

hxprune removes specially marked elements (with their content and children) from an HTML file. By default it removes elements with a class attribute of "exclude". The class attribute is parsed as a whitespace-separated list of words and if one of those words is "exclude", the element is not copied to the output.

Options

The following options are supported:

-c class

Specify a different class than "exclude".

-x

Force output to be in XML-style, i.e., without short attributes and with a slash (/) to mark empty elements.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0
  2. 7–8
  3. 9–Arch

From html-xml-utils 8.8-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.