module

Sanitizer

Constants

STRIP_ELEMENTS = ["script", "style", "iframe", "object", "embed", "form", "audio", "video", "input", "button", "select", "textarea", "meta", "link"] of ::String

These elements (plus their content) are stripped entirely.

Class methods

podcast_description(html : String) : String

Sanitize podcast episode description HTML. Strips dangerous elements/attributes while preserving links, formatting, and images that are normal in RSS episode notes.

Source