-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
google/docsy
#1950Description
If you build this small repro (test-site-2024-04-23.zip) using Hugo 0.124.1 and 0.125.2, you'll see the following difference in the content
of <meta property="og:description">
for http://localhost:1313/docs/page:
0.124.1: <meta property="og:description" content="Test line with a single quote: can’t." />
0.125.2: <meta property="og:description" content="Test line with a single quote: can&rsquo;t.">
Notice that 0.125.2 doubly escapes the content
, so that:
can’t
becomescan&rsquo;t
This seems wrong to me. WDYT?
Below I include a bit more header context.
Hugo 0.124.1:
<meta name="description" content="Test line with a single quote: can&rsquo;t.">
<meta property="og:title" content="Some page" />
<meta property="og:description" content="Test line with a single quote: can’t." />
...
<meta name="twitter:description" content="Test line with a single quote: can’t."/>
Hugo 0.125.2:
<meta name="description" content="Test line with a single quote: can&rsquo;t.">
<meta property="og:url" content="http://localhost:1313/docs/page/">
<meta property="og:site_name" content="My New Hugo Site">
<meta property="og:title" content="Some page">
<meta property="og:description" content="Test line with a single quote: can&rsquo;t.">
...
<meta name="twitter:description" content="Test line with a single quote: can’t.">