Description
Cleans and manipulates HTML or XML in Ruby using Nokogiri-based processing. It is useful for sanitizing user content, transforming markup, and preparing text before rendering it in web pages.
Sanitization is a security boundary. Define allowed tags and attributes carefully, test XSS cases, and keep parser and sanitizer dependencies updated.