Livesearch macro encodes some special characters in search results preview

XMLWordPrintable

    • 4
    • Severity 3 - Minor
    • 1

      Environment:

      Confluence 6.7.0, PostgreSQL 9.5, Google Chrome

      Bug description

      Livesearch macro certain characters in search previews

      Characters
      "
      '
      &
      <
      >
      
      Livesearch preview results for each, respectively
      &quot;
      &#39;
      &amp;
      &lt;
      &gt;
      

      in search results preview

      Steps to replicate
      • Create new page with & character in page title for example "test & test"
      • Go to different page, add livesearch macro, save the page.
      • Search for page with & character in pagename
      Expected results

      Search results correctly encode & character in results preview

      Actual results

      & is encoded as

      &amp; 
      

      Notes:

      Issue is not visible when using main searchbox

            Assignee:
            Oliver Shen
            Reporter:
            GMK
            Votes:
            13 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: