https://github.com/sixarm/sixarm_ruby_xml_strip
SixArm.com » Ruby » XML#strip methods to clean XML & HTML
https://github.com/sixarm/sixarm_ruby_xml_strip
extensions gem ruby strip xml
Last synced: 9 months ago
JSON representation
SixArm.com » Ruby » XML#strip methods to clean XML & HTML
- Host: GitHub
- URL: https://github.com/sixarm/sixarm_ruby_xml_strip
- Owner: SixArm
- License: other
- Created: 2012-03-14T03:28:08.000Z (over 14 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T19:29:25.000Z (almost 3 years ago)
- Last Synced: 2025-02-06T00:24:06.596Z (over 1 year ago)
- Topics: extensions, gem, ruby, strip, xml
- Language: HTML
- Homepage: http://sixarm.com
- Size: 270 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SixArm.com → Ruby →
XML#strip methods to clean XML & HTML
* Doc:
* Gem:
* Repo:
## 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
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'