Skip to content

SixArm/sixarm_ruby_xml_strip

Repository files navigation

SixArm.com → Ruby →
XML#strip methods to clean XML & HTML

Introduction

Methods that work on an XML/HTML text string:

  • XML.strip_all: delete all extraneous junk
  • XML.strip_attributes: delete all attributes
  • XML.strip_comments: delete all comments
  • XML.strip_microsoft: delete all proprietary Microsoft code
  • XML.strip_unprintables: delete all unprintable characters

For docs go to http://sixarm.com/sixarm_ruby_xml_strip/doc

Want to help? We're happy to get pull requests.

Install

Gem

To install this gem in your shell or terminal:

gem install sixarm_ruby_xml_strip

Gemfile

To add this gem to your Gemfile:

gem 'sixarm_ruby_xml_strip'

Require

To require the gem in your code:

require 'sixarm_ruby_xml_strip'

About

SixArm.com » Ruby » XML#strip methods to clean XML & HTML

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published