New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

xhtml-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xhtml-cli

filter and sanitization for html

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

html

FAQs

Package last updated on 28 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts