Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-9434

htmlcleaner creates xml codes for several characters, which can not be rendered by internet explorer 8 and below

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • 2.26.18
    • None
    • None
    • None

    Description

      For browsers, which don't support XHTML standard, such as internet explorer 8 and before, xml codes for &, ", ', <, > can not be rendered correctly. At the end codes are left as they are, which is not very happy. See screenshot from the related client issue.

      Inside Htmlcleaner instead of XML codes we can encode above mentioned characters with more universal UTF-8 codes. And Htmlcleaner comes with a configurable property transResCharsToNCR enabling this [1].

      Suggested changes in the code:
      In project org.onehippo.cms7:hippo-cms-richtext-frontend -> HtmlCleanerPlugin.java -> in createCleaner() method add property properties.setTransResCharsToNCR(true);

      If this is valid improvement, this configuration can be either simply hardcoded or externalized to the console. Question to engineering, what may be the preferred way.

      [1] http://htmlcleaner.sourceforge.net/parameters.php

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              imurasko Ilja Murasko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: