1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 10:02:08 +02:00
tldr/pages/common/nokogiri.md
bl-ue 8ebd171d6f
*: fix typos reported by Hunspell (#5848)
Co-authored-by: marchersimon <50295997+marchersimon@users.noreply.github.com>
Co-authored-by: Seth Falco <seth@falco.fun>
Co-authored-by: Patrice Denis <patricedenis@users.noreply.github.com>
2021-05-20 16:13:41 -04:00

24 lines
553 B
Markdown

# nokogiri
> An HTML, XML, SAX and Reader parser.
> More information: <https://nokogiri.org>.
- Parse the contents of a URL or file:
`nokogiri {{url|path/to/file}}`
- Parse as a specific type:
`nokogiri {{url|path/to/file}} --type {{xml|html}}`
- Load a specific initialisation file before parsing:
`nokogiri {{url|path/to/file}} -C {{path/to/config_file}}`
- Parse using a specific encoding:
`nokogiri {{url|path/to/file}} --encoding {{encoding}}`
- Validate using a RELAX NG file:
`nokogiri {{url|path/to/file}} --rng {{url|path/to/file}}`