From 167d5f1436c158bb944055d6882f79fefe5afaac Mon Sep 17 00:00:00 2001 From: razonyang Date: Thu, 29 Jun 2023 02:46:04 +0800 Subject: [PATCH 1/2] fix: strip HTML tags from headings --- layouts/partials/search/functions/parse-headings.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/search/functions/parse-headings.html b/layouts/partials/search/functions/parse-headings.html index 517e60cdf6e..d54f1894876 100644 --- a/layouts/partials/search/functions/parse-headings.html +++ b/layouts/partials/search/functions/parse-headings.html @@ -2,7 +2,7 @@ {{- range .Fragments.HeadingsMap }} {{- $headings = $headings | append (dict "anchor" .ID - "title" (.Title | htmlUnescape)) + "title" (.Title | plainify)) }} {{- end }} {{- return $headings -}} From 4c80a66204331c047a5caaa57a1d2ec88dbd40c3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 28 Jun 2023 18:47:30 +0000 Subject: [PATCH 2/2] chore(main): release 0.4.4 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d6623413f9e..4307bce1dec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.4.4](https://github.com/hugomods/search/compare/v0.4.3...v0.4.4) (2023-06-28) + + +### Bug Fixes + +* strip HTML tags from headings ([167d5f1](https://github.com/hugomods/search/commit/167d5f1436c158bb944055d6882f79fefe5afaac)) + ## [0.4.3](https://github.com/hugomods/search/compare/v0.4.2...v0.4.3) (2023-05-23)