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

    • 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

            support-lep@liferay.com SE Support
            ti_ki Tim Kieritz (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              5 years, 23 weeks ago

              Packages

                Version Package
                7.0.X