Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 647 Bytes

DEPRECATED.rdoc

File metadata and controls

12 lines (9 loc) · 647 Bytes

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.