1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

s/escape_interpolated_html/escape_filter_interpolations/g

This commit is contained in:
Takashi Kokubun 2019-01-22 20:57:33 +09:00
parent 877bbeabdb
commit 8898fa6a8e
4 changed files with 6 additions and 6 deletions

View file

@ -1126,7 +1126,7 @@ is compiled to
</div>
Note that `#{}` interpolation within filters is HTML-escaped if you specify
{Haml::Options#escape_interpolated_html `:escape_interpolated_html`} option.
{Haml::Options#escape_filter_interpolations `:escape_filter_interpolations`} option.
The functionality of some filters such as Markdown can be provided by many
different libraries. Usually you don't have to worry about this - you can just

View file

@ -164,8 +164,8 @@ module Haml
if contains_interpolation?(text)
return if options[:suppress_eval]
escape = options[:escape_interpolated_html]
# `escape_interpolated_html` defaults to `escape_html` if unset.
escape = options[:escape_filter_interpolations]
# `escape_filter_interpolations` defaults to `escape_html` if unset.
escape = options[:escape_html] if escape.nil?
text = unescape_interpolation(text, escape).gsub(/(\\+)n/) do |s|

View file

@ -8,7 +8,7 @@ module Haml
@valid_formats = [:html4, :html5, :xhtml]
@buffer_option_keys = [:autoclose, :preserve, :attr_wrapper, :format,
:encoding, :escape_html, :escape_interpolated_html, :escape_attrs, :hyphenate_data_attrs, :cdata]
:encoding, :escape_html, :escape_filter_interpolations, :escape_attrs, :hyphenate_data_attrs, :cdata]
# The default option values.
# @return Hash
@ -90,7 +90,7 @@ module Haml
# {file:REFERENCE.md#unescaping_html Unescaping HTML}.
#
# Defaults to the current value of `escape_html`.
attr_accessor :escape_interpolated_html
attr_accessor :escape_filter_interpolations
# The name of the Haml file being parsed.
# This is only used as information when exceptions are raised. This is

View file

@ -13,7 +13,7 @@ module Haml
encoding: nil,
escape_attrs: true,
escape_html: false,
escape_interpolated_html: nil,
escape_filter_interpolations: nil,
filename: '(haml)',
format: :html5,
hyphenate_data_attrs: true,