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

Use JSON.dump instead of to_json #10

Closed
wants to merge 1 commit into from
Closed

Conversation

cyu
Copy link
Contributor

@cyu cyu commented Jul 19, 2016

In newer Rails 3.2 and above, to_json will convert HTML characters into
unicode entities. SparkPost will choke when creating a transmission
with inlined HTML SimpleSpark should use JSON.dump instead to so that
HTML entities aren't escaped.

In newer Rails 3.2 and above, to_json will convert HTML characters into
unicode entities.  SparkPost will choke when creating a transmission
with inlined HTML  SimpleSpark should use JSON.dump instead to so that
HTML entities aren't escaped.
@jakcharlton
Copy link
Contributor

Going to go with similar request #11

Using JSON.generate as it calls dump internally but allows additional options, nice catch thanks

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.

2 participants