Item12388: HTML2TML relies on XML-specific ' entity

pencil
Priority: Normal
Current State: Waiting for Release
Released In: 2.2.0
Target Release: minor
Applies To: Extension
Component: WysiwygPlugin
Branches: master Item14323 Item14288 Item14380 Item14537
Reported By: JanKrueger
Waiting For:
Last Change By: CrawfordCurrie
HTML2TML converts ' and ' to ' in an intermediate step; according to code comments this is done to prevent the entity from being decoded in a following step. However, ' is not defined in HTML (only in XML and thus XHTML), and so older/stricter browsers (IE7 and IE8 are examples of the former category) will treat it as plain text.

Possible fix: after decoding the entitites, replace ' with ' to mostly restore the previous condition.

-- JanKrueger - 08 Feb 2013

In other places, TML2HTML uses markers to protect / restore elements. Rather than converting to HTML entities as "protection", it might be preferable to encode them using some other marker, and then convert back, preserving the original TML.

-- GeorgeClark - 08 Feb 2013

Tiny MCE actually uses apos, which is where I got it from.

Changed the code to use rsquo instead.

-- CrawfordCurrie - 21 Jan 2015

Reverted. ... breaks 33 unit tests.

-- GeorgeClark - 22 Jan 2015

Done again, this time correctly wink Checked in to Item14323.

-- Main.CrawfordCurrie - 01 Mar 2017 - 20:17
 
Topic revision: r14 - 31 Jan 2018, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy