Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-929

HTMLCleaner doesn't recognize some HTML named entity

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 9.9-rc-2, 8.4.6
    • Component/s: XML
    • Labels:
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Put the following in a wiki page:

      {{html}}
      <p>before &auml; &Auml; after</p>
      {{/html}}
      

      The visible output is:

      before ä &Auml; after
      

      The produced HTML is:

      <p>before &auml; &amp;Auml; after</p>
      

      As you can see the &Auml; named entity is not recognized and thus escaped. If you disable the cleaning the output is fine.

      {{html clean="false"}}
      <p>before &auml; &Auml; after</p>
      {{/html}}
      

      Visible text:

      before ä Ä after
      

      Produced HTML:

      <p>before &auml; &Auml; after</p>
      

      Note that the &Auml; named entity is supported by HTML4 (and newer versions).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tmortagne Thomas Mortagne
                Reporter:
                mflorea Marius Dumitru Florea
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: