strip-tags

CLI tool for stripping tags from HTML

APACHE-2.0 License

Downloads
957
Stars
205
Committers
3

Bot releases are hidden (Show)

strip-tags - 0.5.1 Latest Release

Published by simonw over 1 year ago

  • Fixed an error when run against files using an encoding other than UTF-8. Thanks, kmad. #7
strip-tags - 0.5

Published by simonw over 1 year ago

  • New bundles for keeping tags: -t tables keeps table tags, -t lists keeps list tags. #18
  • strip-tags -r/--remove option for entirely removing the content of specified selectors. #24
  • Fixed a bug where <!-- comment --> text was incorrectly included in the stripped output. #25
strip-tags - 0.4.1

Published by simonw over 1 year ago

  • Fixed bug where strip-tags -t pre failed to keep the <pre> tag markup.
  • Better Python library example code.
strip-tags - 0.4

Published by simonw over 1 year ago

  • This package can now be used as a Python library: from strip_tags import strip_tags. Thanks, Benjamin Kirkbride. #9
  • Text inside <pre> elements will no longer have its whitespace modified by --minify. #12
  • strip-tags article --first will now return content from just the first element matching the article selector. #13
  • -t/--keep-tag can be used to specify tags that should have their markup preserved in the output. -t hs and -t structure and -t metadata can be used as shortcuts to specify a bundle of tags at once. #14
strip-tags - 0.3

Published by simonw over 1 year ago

  • Tags with invisible content such as <script> and <style> are now omitted from the output. #4
  • Images are now replaced by the content of their alt= attribute, if available. #5
  • New -m/--minify option for minifying white space in the output. #6
strip-tags - 0.2

Published by simonw over 1 year ago

  • Design change: tool now accepts CSS selectors as optional arguments, input file can be specified using the new -i/--input option. #3
strip-tags - 0.1

Published by simonw over 1 year ago

  • Initial release. Pipe content into this tool to strip HTML tags from it - or specify CSS selectors with -s selector to target a subset of the document. #1