Skip to content

Ampersands seen in search results #3213

Open

Description

@jidanni

I do not own this site. All I know is I did a search and I saw these raw ampersands in the results.
Screenshot_20230506_115822_Chrome Beta.jpg

The site was https://vespucci.io/ and the search was for "copy".

At the bottom of the page there's indication that it was using your software package. Hence I'm reporting the problem directly to you, in the hope that future editions of the software will avoid the problem.

Activity

  1. theoneGUI commented on Jun 30, 2023

    @theoneGUI

    It looks like this is the offending line. I'm new here, so I don't know the ins and outs of the program.

    return '<article><h3><a href="' + joinUrl(base_url, location) + '">'+ escapeHtml(title) + '</a></h3><p>' + escapeHtml(summary) +'</p></article>';

    I was able to replicate the problem by adding an ampersand to a title of a markdown document. I don't know if removing the
    escapeHtml() around title is the answer, but it's an answer.

    I see that the search result is getting formatted as if it's getting inserted directly into HTML with escapes, but is the formatResult() necessary for title and summary if it's putting the escape code in the document?

  2. oprypin commented on Apr 10, 2024

    @oprypin
  3. waylan commented on Apr 10, 2024

    @waylan
    Contributor

    And how does this proposal address the issues raised in the first comment on #3560?

  4. oprypin commented on Apr 10, 2024

    @oprypin
  5. lovelydinosaur commented on Apr 12, 2024

    @lovelydinosaur
    Collaborator

    uh oh

    trouble

  6. lovelydinosaur commented on Apr 15, 2024

    @lovelydinosaur
    Collaborator

    What are we here for if not for the content (& lols?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions