use the double quotation marks

This commit is contained in:
Jason Tian 2023-01-16 17:08:53 +08:00
parent e5e75b9481
commit accfa1b5f4

View file

@ -17,7 +17,7 @@ reference:
{{ $keyword := index $r 0 }}
{{ $link := index $r 1 }}
{{- $newWithLink := print "<a href='" $link "'>" $keyword "</a>" -}}
{{- $newWithLink := print "<a href=\"" $link "\">" $keyword "</a>" -}}
{{- if (strings.Contains $Content $keyword) -}}
{{ $Content = replace $Content $keyword $newWithLink }}