Export to csv – quotes as html entities
-
In Formbuilder 1.01, when I do an export of my stored results, every single quote (‘) is written as an html entity (').
I’m not sure if this has to do with my configuration, or if this is a bug. But I found out it was caused by an ENT_NOQUOTES parameter in extensions/formbuilder_xml_db_results.class.php, where (in my opinion) an ENT_QUOTES would be more logical.
So, if anyone else has this problem, on line 1104 change
echo ',"' . str_replace('"', '""', decode_html_entities($value, ENT_NOQUOTES, get_option('blog_charset'))) . '"';
to
echo ',"' . str_replace('"', '""', decode_html_entities($value, ENT_QUOTES, get_option('blog_charset'))) . '"';
and on line 1113 change
echo ',"' . $key_insert . str_replace('"', '""', decode_html_entities($value, ENT_NOQUOTES, get_option('blog_charset'))) . '"';
to
echo ',"' . $key_insert . str_replace('"', '""', decode_html_entities($value, ENT_QUOTES, get_option('blog_charset'))) . '"';
To the author, could this be fixed in a next version?
- The topic ‘Export to csv – quotes as html entities’ is closed to new replies.