diff --git a/page.go b/page.go index 86387bb..4802587 100644 --- a/page.go +++ b/page.go @@ -2,19 +2,20 @@ package main import ( "bytes" + "html" "text/template" ) func GenerateEpisodeDescription(imageURL, title, content string) string { // Template con sezione CDATA - const descTemplate = `
@@ -31,7 +32,7 @@ func GenerateEpisodeDescription(imageURL, title, content string) string { - ]]>` + ` // Dati per il template data := struct { @@ -50,8 +51,8 @@ func GenerateEpisodeDescription(imageURL, title, content string) string { if err := tmpl.Execute(&buf, data); err != nil { // Fallback con CDATA - return "" + title + "" + content + "]]>" + return "