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

Escape attr value when converting to iolist #10

Merged
merged 1 commit into from
Mar 30, 2015

Conversation

chrisyunker
Copy link

Addresses this: #9

This reuses escape_attr NIF to escape attribute values when converting to iolist. This function escapes both single and double quotes. Since we always convert to a value enclosed in single quotes, we don't need to escape double quotes, but not sure it's worth it to modify or create a separate NIF just for this purpose.

@erszcz
Copy link
Member

erszcz commented Mar 30, 2015

Works great, thanks!

@erszcz erszcz closed this Mar 30, 2015
@erszcz erszcz reopened this Mar 30, 2015
erszcz added a commit that referenced this pull request Mar 30, 2015
Escape attr value when converting to iolist
@erszcz erszcz merged commit a8c18e0 into esl:master Mar 30, 2015
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