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: 11 days 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: 2025-04-14T09:21:35.000Z (over 1 year ago)
- Last Synced: 2026-03-28T14:19:48.775Z (4 months ago)
- Topics: extensions, gem, ruby, strip, xml
- Language: HTML
- Homepage: http://sixarm.com
- Size: 270 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- 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'