Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Imagine a case where a stringified json is inlined as a data attribute, in this case the " must be escaped, too, in order to maintain valid html
- Loading branch information
1cbea0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timse @shepherdwind Hey, just let you know that this commit broke us:
We have the following index.vm:
And the following
data.mock.json
:Before this commit it worked fine, but after it started to be escaped.
In our case we just disabled escaping. But it can brake other users.
Thanks for your contribution, guys!
1cbea0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you feedback. I rollback the latest version to 1.1.4 now.
This change is break change, I should publish a new major version.
1cbea0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.0.0 version published, https://github.com/shepherdwind/velocity.js/blob/master/History.md#200-2019-09-26
@timse You can upgrade to the new version, and set escape option to true. https://github.com/shepherdwind/velocity.js/blob/master/index.d.ts#L39
1cbea0f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shepherdwind Thank you man! You rock 🤘