File: hxprune.1

package info (click to toggle)
html-xml-utils 7.7-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 2,488 kB
  • sloc: ansic: 11,213; sh: 7,996; lex: 243; makefile: 193; yacc: 125
file content (28 lines) | stat: -rw-r--r-- 794 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.TH "HXPRUNE" "1" "10 Jul 2011" "7.x" "HTML-XML-utils"
.SH NAME
hxprune \- remove marked elements from an HTML file
.SH SYNOPSIS
.B hxprune
.RB "[\| " \-c
.IR class " \|]"
.RB "[\| " \-x " \|]"
.RI "[\| " file " \|]"
.SH DESCRIPTION
.B 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.
.SH OPTIONS
The following options are supported:
.TP
.BI \-c " class"
Specify a different
.I class
than "exclude".
.TP
.B \-x
Force output to be in XML-style, i.e., without short attributes and
with a slash (/) to mark empty elements.
.\" TODO