method

translate_xml_entities

rails latest stable - Class: ActiveSupport::CoreExtensions::Hash::Conversions::ClassMethods

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.2.6) is shown here.

translate_xml_entities(value)
private

No documentation available.

# File activesupport/lib/active_support/core_ext/hash/conversions.rb, line 175
            def translate_xml_entities(value)
              value.gsub(/&lt;/,   "<").
                    gsub(/&gt;/,   ">").
                    gsub(/&quot;/, '"').
                    gsub(/&apos;/, "'").
                    gsub(/&amp;/,  "&")
            end