two-pack / redmine_xlsx_format_issue_exporter

This is Redmine plugin which exports issue list to XLSX format file.
GNU General Public License v2.0
58 stars 26 forks source link

Convert Html Entities on XLSX Export (CKEditor) #78

Closed hoangmn3s closed 5 years ago

hoangmn3s commented 5 years ago

After using CKEditor to save Data (Description/Notes) Data save with HTML Entities format and still keep it on export Ex: line1<br> <strong>line2</strong>

hoangmn3s commented 5 years ago

I fixed on use : Nokogiri & CGI

`require 'nokogiri' require 'cgi'

Nokogiri::HTML(CGI.unescapeHTML(htmlCode)).content`

Docs : https://roratmindfiresolutions.wordpress.com/2013/10/09/how-to-remove-html-characters-from-encoded-html-string-in-ruby/

aozhi2nd commented 4 years ago

Hi,how to fix it? which file?

two-pack commented 4 years ago

Hi,how to fix it? which file?

This plugin is not tests and supported with other plugins. If you will fork and fix it, I think you should see xlsx_export_helper.rb first.