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

Update generic-helpers.js #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

deltoss
Copy link

@deltoss deltoss commented Nov 28, 2018

I noticed when converting to word, it doesn't handle certain HTML entities well. It ends up displaying """ and so on.

Figured out by the time it reaches the wpml (which converts to WordProcessingML) function, the string was already escaped (although I don't know how it does that). So if you put quote (") in your resume JSON (e.g. a writing summary), it'll look like " at the START of the wpml function.

The problem is in line 386, it uses xml-escape to escape it again. So it'll end up as """, which in the end rendered on the document as """.

As such, I propose a change to ignore "&" when using xml-escape.

I noticed when converting to word, it doesn't handle certain HTML entities well. It ends up displaying """ and so on.

Figured out by the time it reaches the wpml (which converts to WordProcessingML) function, the string was already escaped (although I don't know how it does that). So if you put quote (") in your resume JSON (e.g. a writing summary), it'll look like " at the START of the wpml function.

The problem is in line 386, it uses xml-escape to escape it again. So it'll end up as """, which in the end rendered on the document as """.

As such, I propose a change to ignore "&" when using xml-escape.
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