[TIME-51] HTML special chars via excel view
I've made a worklog record for my issue that contain html text. For example:
some text <html> <body> 123 </body> </html> some text
When i view Time sheet report, everything is OK. I can see all my records and total times. But when I try to see it in Excel I just see some ot my records. Couple of hours I tried to understand the problem and I found reason. TEXT from worklog comment is going to result HTML for Excel view WITHOUT any converting special characters to HTML entities (<td align="center" width=1%>$worklog.getComment()</td>). After that in excel html I've got:
<td align="center" width=1%>some text <html> <body> 123 </body> </html> some text</td>
and all table brake down.
By miph/Dmitry Spirin on Mon, 5 Jan 2009 13:16:52 -0800
Comments (3)
-
reporter -
reporter Fixed (use $textutils.plainTextToHtml() for summary and #makelinkedhtml() for comment similarly to html views). Sorry I did not find this quickly first time.
By azhdanov on Fri, 9 Jan 2009 13:44:22 -0800
-
reporter - removed version
Removing version: 1.8 (automated comment)
- Log in to comment
Андрей, если по-русски, то текст комментария в Журнальной записи попадает в Эксель без обработки на HTML сущности, поэтому в случае нахождения в нем HTML-текст результиирующая таблица для Excel ломается. =( У меня получилось так, что из 10 записей в Экселе я видел только 3. В поисках остальных 7 я случайно заглянул в исходник файла, который я получаю для экселя. Это оказался обычный HTML, он просто сломанный.
Спасибо, если подскажете, как это сейчас быстро исправить. Полагаю, достаточно как-то поправить VM-файл, ибо в JAVA я не силен.
By miph on Mon, 5 Jan 2009 13:25:20 -0800