Comments (9)
You cannot use &, <, or > in xml. - they must be character entities.
I don't think it should be the responsibility of the gem to try and guess when "&" is supposed to be converted to &
from axlsx.
I think it axlsx should convert them to entities, in excel I don't have to worry about entities or xml. Why should I have to when I use axlsx ;). It did convert them before those performance tweaks.
from axlsx.
Care to take this one on? I am a little bit worried about the performance hit of checking the content of every non-formula string cell to ensure that it does not contain invalid XML characters.
from axlsx.
On my system escaping is 19% slower.. But IMHO it must not be possible to generate invalid documents using axlsx.
:)
from axlsx.
What kind of mechanism are you using?
from axlsx.
I tried fast_xs and CGI.escapeHTML using a simple collect before calling add_row
from axlsx.
hmmm we are going to have to eat this somewhere. Looking at the fastest option (replacing in worksheet.to_xml_string) is complicated - seems it should happen when the cell is created. (as you have done with add_row) Do you know a way to hit libxml directly? (again my ignorance shines through...)
feeling parenthetical it seems...
from axlsx.
fixed on master and will be released with 1.1.0
I used CGI in Cell.cast_value as it only applies to strings and need to be hit when people edit the value of the cell directly.
from axlsx.
👍
from axlsx.
Related Issues (20)
- Some formulas do not work in Axlsx
- Title not set in LineChart.
- Mutiple thread error file HOT 2
- Conditionnal formating
- Upgrade Rubyzip 2 HOT 6
- outline_level_rows bag
- Stacked bar chart plotted as staircased HOT 3
- formula1 dont work on add_data_validation HOT 1
- Numbers as text HOT 1
- Low-order non-printable ASCII characters in worksheet name should be escaped or removed HOT 5
- Performance reduction with rails 5.2 HOT 2
- undefined method `downcase' when call the serialize method HOT 2
- rubyzip dependency is old
- Deployment not working (mimemagic (0.3.0) - version could not be found HOT 5
- dependent drop-down list
- Axlsx indent not working HOT 1
- DropDownList selected NAME get ID
- can't modify frozen String when run with --enable=frozen-string-literal flag HOT 1
- Stacked bar chart example not working HOT 1
- Error when opening xlsx file from OneDrive but not from other programs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axlsx.