Skip to content

Commit

Permalink
Docs: Clarify changes to escaping of quotes
Browse files Browse the repository at this point in the history
An example will help people (like me) understand this breaking
change.

[ci skip]
  • Loading branch information
jaredbeck committed May 1, 2017
1 parent c67e672 commit 2d47f4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ Breaking Changes
or `Haml::Template.options` instead. (Takashi Kokubun)
* 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)

Example:
Input: #{JSON.generate(foo: "bar")}
Haml 4 output: {"foo":"bar"}
Haml 5 output: {"foo":"bar"}

* Don't preserve newlines in attributes. (Takashi Kokubun)

Added
Expand Down

0 comments on commit 2d47f4d

Please sign in to comment.