Docs: Clarify changes to escaping of quotes

An example will help people (like me) understand this breaking
change.

[ci skip]
This commit is contained in:
Jared Beck 2017-05-01 12:34:22 -04:00
parent c67e672743
commit a4f6081faf
1 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,14 @@ Breaking Changes
* Drop dynamic quotes support and always escape `'` for `escape_html`/`escape_attrs` instead.
Also, escaped results are slightly changed and always unified to the same characters. (Takashi Kokubun)
* Don't preserve newlines in attributes. (Takashi Kokubun)
* HTML escape interpolated code in filters.
[#770](https://github.com/haml/haml/pull/770)
(Matt Wildig)
:javascript
#{JSON.generate(foo: "bar")}
Haml 4 output: {"foo":"bar"}
Haml 5 output: {"foo":"bar"}
Added