Scroll to navigation

HTML-BEAUTIFY(1) User Commands HTML-BEAUTIFY(1)

NAME

html-beautify - beautify, unpack or deobfuscate HTML

DESCRIPTION

html-beautify.js@1.14.7

CLI Options:

Input file(s) (Pass '-' for stdin)
Write output in-place, replacing input
Write output to file (default stdout)
Path to config file
[js|css|html] ["js"]
Suppress logging to stdout
Show this help
Show the version

Beautifier Options:

Indentation size [4]
Indentation character [" "]
Indent with tabs, overrides -s and -c
Character(s) to use as line terminators. [first newline in file, otherwise "\n]
End output with newline
Keep indentation on empty lines
List of templating languages (auto,none,django,erb,handlebars,php,smarty) ["auto"] auto = none in JavaScript, all in html
Use EditorConfig to set up the options
[collapse|expand|end-expand] ["collapse"]
Indent body and head sections. Default is false.
Indent handlebars. Default is false.
[keep|separate|normal] ["normal"]
Wrap lines that exceed N characters [0]
Wrap html tag attributes to new lines [auto|force|force-aligned|force-expand-multiline|aligned-multiple|preserve|preserve-aligned] ["auto"]

-i, --wrap-attributes-indent-size Indent wrapped tags to after N characters [indent-level]

Preserve line-breaks (--no-preserve-newlines disables)
Number of line-breaks to be preserved in one chunk [10]
List of tags (defaults to inline) that should not be reformatted
List of tags (defaults to pre) whose content should not be reformatted
List of tags (defaults to [head,body,/html] that should have an extra newline
Keep text content together between this string [""]
October 2022 html-beautify 1.14.7