From 86e704a73b25687997f1ecfa956584650254e76a Mon Sep 17 00:00:00 2001 From: Jan Buchar Date: Thu, 5 Dec 2024 14:23:40 +0000 Subject: [PATCH] Escape HTML in git-cliff-release (#164) --- git-cliff-release/cliff.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-cliff-release/cliff.toml b/git-cliff-release/cliff.toml index 18afbb0..34165ec 100644 --- a/git-cliff-release/cliff.toml +++ b/git-cliff-release/cliff.toml @@ -31,9 +31,9 @@ body = """ - {% if commit.scope %}**{{ commit.scope }}:** {% endif %}\ {% if commit.breaking %}[**breaking**] {% endif %}\ {% if commit.extra.pr_link %}\ - {{ commit.message | upper_first | replace(from=commit.extra.raw_pr_link, to=commit.extra.pr_link) }}\ + {{ commit.message | escape | upper_first | replace(from=commit.extra.raw_pr_link, to=commit.extra.pr_link) }}\ {% else %}\ - {{ commit.message | upper_first }}\ + {{ commit.message | escape | upper_first }}\ {% endif %}\ {% if commit.extra.commit_link %} ([{{ commit.id | truncate(length = 7, end = "") }}]({{ commit.extra.commit_link }})){% endif %}\ {% if commit.remote.username and extra.is_release_notes %}\