summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--vhosts/blog/nuldoc-src/renderers/html.ts4
-rw-r--r--vhosts/blog/nuldoc-src/renderers/xml.ts2
-rw-r--r--vhosts/blog/public/posts/2021-10-02/python-unbound-local-error/index.html2
-rw-r--r--vhosts/blog/public/posts/2024-08-19/go-template-access-outer-scope-pipeline-within-with-or-range/index.html6
-rw-r--r--vhosts/blog/public/posts/2024-12-04/cohackpp-report/index.html2
5 files changed, 9 insertions, 7 deletions
diff --git a/vhosts/blog/nuldoc-src/renderers/html.ts b/vhosts/blog/nuldoc-src/renderers/html.ts
index dee9a0cc..70d097b2 100644
--- a/vhosts/blog/nuldoc-src/renderers/html.ts
+++ b/vhosts/blog/nuldoc-src/renderers/html.ts
@@ -174,7 +174,9 @@ function elementNodeToHtmlText(e: Element, ctx: Context): string {
s += " ";
for (let i = 0; i < attributes.length; i++) {
const [name, value] = attributes[i];
- s += `${name === "className" ? "class" : name}="${value}"`;
+ s += `${name === "className" ? "class" : name}="${
+ encodeSpecialCharacters(value)
+ }"`;
if (i !== attributes.length - 1) {
s += " ";
}
diff --git a/vhosts/blog/nuldoc-src/renderers/xml.ts b/vhosts/blog/nuldoc-src/renderers/xml.ts
index c3293d17..69b8266c 100644
--- a/vhosts/blog/nuldoc-src/renderers/xml.ts
+++ b/vhosts/blog/nuldoc-src/renderers/xml.ts
@@ -72,7 +72,7 @@ function elementNodeToXmlText(e: Element, ctx: Context): string {
s += " ";
for (let i = 0; i < attributes.length; i++) {
const [name, value] = attributes[i];
- s += `${name}="${value}"`;
+ s += `${name}="${encodeSpecialCharacters(value)}"`;
if (i !== attributes.length - 1) {
s += " ";
}
diff --git a/vhosts/blog/public/posts/2021-10-02/python-unbound-local-error/index.html b/vhosts/blog/public/posts/2021-10-02/python-unbound-local-error/index.html
index 8d6743b4..e55a7ac8 100644
--- a/vhosts/blog/public/posts/2021-10-02/python-unbound-local-error/index.html
+++ b/vhosts/blog/public/posts/2021-10-02/python-unbound-local-error/index.html
@@ -8,7 +8,7 @@
<meta name="description" content="Python における UnboundLocalError の理由と対処法。">
<meta name="keywords" content="Python,Python 3">
<meta property="og:type" content="article">
- <meta property="og:title" content="【Python】 クロージャとUnboundLocalError: local variable 'x' referenced before assignment|REPL: Rest-Eat-Program Loop">
+ <meta property="og:title" content="【Python】 クロージャとUnboundLocalError: local variable &apos;x&apos; referenced before assignment|REPL: Rest-Eat-Program Loop">
<meta property="og:description" content="Python における UnboundLocalError の理由と対処法。">
<meta property="og:site_name" content="REPL: Rest-Eat-Program Loop">
<meta property="og:locale" content="ja_JP">
diff --git a/vhosts/blog/public/posts/2024-08-19/go-template-access-outer-scope-pipeline-within-with-or-range/index.html b/vhosts/blog/public/posts/2024-08-19/go-template-access-outer-scope-pipeline-within-with-or-range/index.html
index 25f47189..da9af0e7 100644
--- a/vhosts/blog/public/posts/2024-08-19/go-template-access-outer-scope-pipeline-within-with-or-range/index.html
+++ b/vhosts/blog/public/posts/2024-08-19/go-template-access-outer-scope-pipeline-within-with-or-range/index.html
@@ -5,11 +5,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="nsfisis">
<meta name="copyright" content="&copy; 2024 nsfisis">
- <meta name="description" content="Go言語の text/template における with や range は "." を上書きする。これらの内側から外側の "." にアクセスする方法を調べた。">
+ <meta name="description" content="Go言語の text/template における with や range は &quot;.&quot; を上書きする。これらの内側から外側の &quot;.&quot; にアクセスする方法を調べた。">
<meta name="keywords" content="Go">
<meta property="og:type" content="article">
- <meta property="og:title" content="【Go】 text/template の with や range の内側から外側の "." にアクセスする|REPL: Rest-Eat-Program Loop">
- <meta property="og:description" content="Go言語の text/template における with や range は "." を上書きする。これらの内側から外側の "." にアクセスする方法を調べた。">
+ <meta property="og:title" content="【Go】 text/template の with や range の内側から外側の &quot;.&quot; にアクセスする|REPL: Rest-Eat-Program Loop">
+ <meta property="og:description" content="Go言語の text/template における with や range は &quot;.&quot; を上書きする。これらの内側から外側の &quot;.&quot; にアクセスする方法を調べた。">
<meta property="og:site_name" content="REPL: Rest-Eat-Program Loop">
<meta property="og:locale" content="ja_JP">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
diff --git a/vhosts/blog/public/posts/2024-12-04/cohackpp-report/index.html b/vhosts/blog/public/posts/2024-12-04/cohackpp-report/index.html
index 6d83b669..0eaaf645 100644
--- a/vhosts/blog/public/posts/2024-12-04/cohackpp-report/index.html
+++ b/vhosts/blog/public/posts/2024-12-04/cohackpp-report/index.html
@@ -8,7 +8,7 @@
<meta name="description" content="2024-11-30 に開催された紅白ぺぱ合戦に参加し、ぺ陣営のメンバとして LT しました。">
<meta name="keywords" content="紅白ぺぱ合戦,PHP">
<meta property="og:type" content="article">
- <meta property="og:title" content="紅白ぺぱ合戦に参加&LTしました|REPL: Rest-Eat-Program Loop">
+ <meta property="og:title" content="紅白ぺぱ合戦に参加&amp;LTしました|REPL: Rest-Eat-Program Loop">
<meta property="og:description" content="2024-11-30 に開催された紅白ぺぱ合戦に参加し、ぺ陣営のメンバとして LT しました。">
<meta property="og:site_name" content="REPL: Rest-Eat-Program Loop">
<meta property="og:locale" content="ja_JP">