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:
parent
c67e672743
commit
a4f6081faf
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue