Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72000

Search result shows the » (U+00BB) character as » in preview

    Details

    • Fix Priority:
      2

      Description

      Reproduction:
      Create a wiki page with a » character ('RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK' (U+00BB)) in its title. Then search for that page. In the preview there will be » in the title because it was escaped twice.

      Cause:
      HtmlImpl.escape escapes the » but HtmlImpl.unescape doesn't unescape it.

      Since StringUtil.highlight first unescapes the input and later escapes it this leads to a double escaped character.

      I assume that the same happens for other character that are escaped but not unescaped.
      In my opinion HtmlUtil.escape should escape exactly the things that HtmlUtil.unescape unescapes.

        Attachments

        1. access.PNG
          access.PNG
          164 kB
        2. Edit.PNG
          Edit.PNG
          390 kB

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            ti_ki Tim Kieritz
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Days since last comment:
              4 years, 22 weeks, 1 day ago

                Packages

                Version Package