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

HTMLCleaner doesn't recognize some HTML named entity

    XMLWordPrintable

Details

    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: