Bug 110644

Summary: Single quotes not displayed correctly in "raw HTML code"
Product: [Applications] kmail Reporter: bert
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: bjoern, kollix
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:

Description bert 2005-08-12 18:52:39 UTC
Version:            (using KDE KDE 3.4.1)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When an e-mail message is in HTML and kmail displays the raw HTML code, it doesn't actually display the same thing as in the "view source" command. In particular, in the "raw HTML code," all occurrences of ' (single quote) are replaced by "&aps".

The problem is that "&aps" is only a correct entity reference if it isn't followed by another letter. But often it is, resulting in lines that look like

    ... doesn&apst...

instead of "doesn't' or "doesn&aps;t" The entity &apst is not valid in HTML and leads to errors when that "raw HTML code" is used in another application.
Comment 1 Björn Ruberg 2009-12-21 21:21:13 UTC
What do you want to have changed?
Comment 2 bert 2009-12-21 23:53:01 UTC
On 21/12/09 21:21, Björn Ruberg  wrote:
> https://bugs.kde.org/show_bug.cgi?id=110644
> 
> 
> Björn Ruberg <bjoern@ruberg-wegener.de> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |bjoern@ruberg-wegener.de
> 
> 
> 
> 
> --- Comment #1 from Björn Ruberg <bjoern ruberg-wegener de>  2009-12-21 21:21:13 ---
> What do you want to have changed?

Best is that kmail does what it says and indeed shows the raw HTML code,
i.e., a single quote (') is shown as a single quote. If that is
impossible for some reason, then at least it should show a correct
entity, either "&apos;" or "&#39;" including the "o" and the final ";".



Bert
Comment 3 Martin Koller 2012-07-21 14:50:41 UTC
KDE/4.9 kmail 2 shows: "I didn&aps;t want" for the text "I didn't want"