README
XHTML
HTML filter and sanitization cli tool
Install
npm install -g xhtml-cli
Usage
xhtml --help
Filtering tags
curl -s https://github.com | xhtml -s "meta[property]"
curl -s https://github.com | xhtml -selector "meta[property]"
Limiting depth output
curl -s https://github.com | xhtml -s "strong" -d 0
curl -s https://github.com | xhtml -selector "strong" -depth 0
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