pywb icon indicating copy to clipboard operation
pywb copied to clipboard

HTML metadata.yaml is escaped

Open ArtHoff opened this issue 3 years ago • 1 comments

Describe the bug

Hi I upgraded from pywb 2.5.0 to the latest 2.6.7. Since the upgrade my metadata does not display properly in the interface. I have entries in my metadata.yaml files that create links, and they used to be displayed as links and were clickable. Now, after the upgrade the links are displayed as text. When looking at the page source I can see that the code is encoded. Instead of <a href="blah"> it now shows &lt;a href=&#34;blah&#34;&gt;

Steps to reproduce the bug

In the metadata.yaml file enter something like: details: 'This site is being replaced by a new site: <a href="https://mysite.test.com/test">https://mysite.test.com/test</a>.'

Expected behavior

I expect to see clikcable links like this: image

But I see this: image

Environment

  • OS: RedHat Enterprise Linux Server release 7.9 (Maipo)
  • Browser Firefox, Chrome, Edge
  • Version not applicable

Additional context

ArtHoff avatar Jun 17 '22 04:06 ArtHoff

Hi, Thank you for addressing this issue, however there is still an issue with the HTML rewrite. On the home page the first URL is clickable, but the one in the comment is displayed as HTML. I expect to see: Link

But instead it shows: No link

Thanks for looking into this.

ArtHoff avatar Dec 12 '22 01:12 ArtHoff