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

Ampersands are parsed as & rather than & #57

Closed
quainjn opened this issue Jun 25, 2013 · 2 comments
Closed

Ampersands are parsed as & rather than & #57

quainjn opened this issue Jun 25, 2013 · 2 comments
Assignees

Comments

@quainjn
Copy link

quainjn commented Jun 25, 2013

Eg. A cell like "Ben & Jerry's" gets parsed to:

Ben & Jerry's
@testzugang
Copy link

Is there any plan to fix this issue or is there another way to solve it?

@weshatheleopard
Copy link
Owner

I have a fix for this, see https://github.com/eligoenergy/rubyXL/commit/562d16e12f7f7cc6be0125e99d4e7b764f64d0d7

The problem is that they are using node.children.to_s where they should be using node.children.first.text (.to_s is escaping the ampersands, while .text gives raw value).

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

No branches or pull requests

3 participants