Skip to content
/ xhtml Public

filter and sanitization command line for HTML

License

Notifications You must be signed in to change notification settings

2fd/xhtml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

47a0b80 · Feb 28, 2021

History

5 Commits
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021
Feb 28, 2021

Repository files navigation

XHTML

HTML filter and sanitization cli tool

Install

  npm install -g xhtml-cli

Usage

  xhtml --help

help command

Filtering tags

  curl -s https://github.com | xhtml -s "meta[property]"
  curl -s https://github.com | xhtml -selector "meta[property]"

meta

Limiting depth output

  curl -s https://github.com | xhtml -s "strong" -d 0
  curl -s https://github.com | xhtml -selector "strong" -depth 0

meta

No color output

  curl -s https://github.com | xhtml -s "strong" -d 0 --no-color
  curl -s https://github.com | xhtml -selector "strong" -depth 0 --no-color

meta

About

filter and sanitization command line for HTML

Resources

License

Stars

Watchers

Forks

Packages

No packages published