Registry / serialization / loofah

loofah

JSON →
library2.25.1rbrubygemsunverified

A library for manipulating and transforming HTML/XML documents and fragments, built on Nokogiri, with HTML sanitizers based on html5lib's safelist.

gem install loofah
INSTALL
IMPORT
SIG · LOOFAH
L
loofah
serializationrubyv2.25.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Loofah
require 'loofah'

Sanitize an HTML fragment

require 'loofah' doc = Loofah.fragment('<p>Hello <script>alert(1)</script></p>') puts doc.scrub!(:strip).to_html
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.25.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
loofah — gem install loofah · libregistry