Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Mustache#escape #245

Merged
merged 1 commit into from Oct 13, 2018
Merged

Implement Mustache#escape #245

merged 1 commit into from Oct 13, 2018

Conversation

locks
Copy link
Member

@locks locks commented Oct 3, 2018

Mustache currently has a Mustache#escapeHTML method that can be overriden to customize the escaping of the values of {{}}. Given that the escaping does not necessarily have to be HTML, a more generic Mustache#escape will be added.

Technical approach

  • Introduce Mustache#escape that defaults to Mustache#escapeHTML
  • Deprecate Mustache#escapeHTML

@locks locks self-assigned this Oct 3, 2018
@locks locks merged commit a72cde3 into master Oct 13, 2018
@locks locks deleted the feat/escaping-option branch October 13, 2018 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant