Description
Parses and manipulates HTML and XML in Ruby using DOM, SAX, and streaming reader styles. It is useful for scraping, sanitization, document transformation, imports, and web tooling.
HTML and XML from untrusted sources can be malformed, huge, or hostile. Disable unsafe features where needed, limit input size, and sanitize output before rendering.