Fix reference about filter HTML-escape

See: https://github.com/haml/haml/issues/940#issuecomment-315695441
This commit is contained in:
Takashi Kokubun 2017-07-17 21:03:11 +09:00
parent f88be3deaa
commit 965e66eb6b
1 changed files with 2 additions and 2 deletions

View File

@ -1120,8 +1120,8 @@ is compiled to
<p>I <strong>really</strong> prefer <em>raspberry</em> jam.</p> <p>I <strong>really</strong> prefer <em>raspberry</em> jam.</p>
</div> </div>
Currently, filters ignore the {Haml::Options#escape_html `:escape_html`} option. Note that `#{}` interpolation within filters is HTML-escaped if you specify
This means that `#{}` interpolation within filters is never HTML-escaped. {Haml::Options#escape_html `:escape_html`} option.
The functionality of some filters such as Markdown can be provided by many 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 different libraries. Usually you don't have to worry about this - you can just