DEPRECATED.rdoc

Path: DEPRECATED.rdoc
Last Update: Fri Dec 03 17:27:06 +0000 2010

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.

[Validate]