Skip to content

Commit 86e704a

Browse files
authored
Escape HTML in git-cliff-release (#164)
1 parent fa57eea commit 86e704a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-cliff-release/cliff.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ body = """
3131
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}\
3232
{% if commit.breaking %}[**breaking**] {% endif %}\
3333
{% if commit.extra.pr_link %}\
34-
{{ commit.message | upper_first | replace(from=commit.extra.raw_pr_link, to=commit.extra.pr_link) }}\
34+
{{ commit.message | escape | upper_first | replace(from=commit.extra.raw_pr_link, to=commit.extra.pr_link) }}\
3535
{% else %}\
36-
{{ commit.message | upper_first }}\
36+
{{ commit.message | escape | upper_first }}\
3737
{% endif %}\
3838
{% if commit.extra.commit_link %} ([{{ commit.id | truncate(length = 7, end = "") }}]({{ commit.extra.commit_link }})){% endif %}\
3939
{% if commit.remote.username and extra.is_release_notes %}\

0 commit comments

Comments
 (0)