Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-55261

Livesearch macro encodes some special characters in search results preview

XMLWordPrintable

      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

              oshen@atlassian.com Oliver Shen
              gkowalczyk GMK
              Votes:
              13 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: