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

feat: base64 index-data to avoid misencoding #421

Merged
merged 1 commit into from
Jul 22, 2024
Merged

feat: base64 index-data to avoid misencoding #421

merged 1 commit into from
Jul 22, 2024

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Jul 21, 2024

When passing data using html template, its JSON content is automatically escaped for HTML entities. see #419

  <template id="index-data">__INDEX_DATA__</template>

We can use base64 to prevent such issues.

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.

1 participant