Bug 348381

Summary: HTML export double HTML encodes the page title
Product: [Applications] tellico Reporter: Jens bang <kde.org>
Component: generalAssignee: Robby Stephenson <robby>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 2.3.10   
Target Milestone: ---   
Platform: Other   
OS: Linux   
URL: http://files.snej.dk/tellico/test03.html
Latest Commit: Version Fixed In: 2.3.11
Sentry Crash Report:

Description Jens bang 2015-05-29 02:06:27 UTC
I have created a video collection with the name
Jens' Film List

When I export the collection to HTML the page title seems to be HTML encoded 2 times, thereby corrupting the ' and making the page title into this:
<title>Jens&amp;apos; film list </title>

This only happens to the page title, not the heading on the page itself, which doesn't seem to be HTML encoded at all.

Reproducible: Always

Steps to Reproduce:
1. Create video collection.
2. Choose Collection->Rename Collection from the menu.
3. Set the name to "Jens' Film List" (without the quotation marks).
4. Export to HTML.
5. Check the generated HTML source.

Actual Results:  
The HTML page title is <title>Jens&amp;apos; film list </title>

Expected Results:  
The HTML page title should be <title>Jens&apos; film list </title>

I would have chosen the severity as "Minor", but it says that there's an easy workaround to the minor severity, but I don't see a workaround, so I chose "Normal".
Comment 1 Robby Stephenson 2015-06-03 02:42:05 UTC
Git commit 7b50035676af8fac22784ab7f3deb6351cd007f7 by Robby Stephenson.
Committed on 03/06/2015 at 02:40.
Pushed by rstephenson into branch '2.3'.

Fix a bug with HTML export of page title with single-quotes

Having a parameter for XSLT export that includes both single-quotes and
double-quotes is not allowed. Rather than changing all single-quotes to
&apos;, check for both possibilities.
FIXED-IN: 2.3.11

M  +4    -0    ChangeLog
M  +9    -2    src/translators/xslthandler.cpp

http://commits.kde.org/tellico/7b50035676af8fac22784ab7f3deb6351cd007f7