Deprecations
In Loofah 0.3.0, some methods have
been deprecated. The following lists the equivalent calls with the post-0.2
API:
- strip_tags(string_or_io) is now scrub_document(string_or_io,
:prune).text
- whitewash(string_or_io) is now scrub_fragment(string_or_io,
:whitewash).to_s
- whitewash_document(string_or_io) is now
scrub_document(string_or_io, :whitewash).to_s
- sanitize(string_or_io) is now scrub_fragment(string_or_io,
:escape).to_xml
- sanitize_document(string_or_io) is now
scrub_document(string_or_io, :escape).to_xml
Have a nice day.