fix: render HTML links in short descriptions and responsibilities

- Added safeHTML template function to prevent HTML escaping
- Applied safeHTML filter to ShortDescription fields in Experience, Awards, and Courses
- Applied safeHTML filter to Responsibilities in all sections
- Links and HTML formatting now render correctly instead of showing raw HTML tags
This commit is contained in:
juanatsap
2025-11-07 21:49:27 +00:00
parent 4442ef1990
commit 0c4ceddc26
2 changed files with 9 additions and 6 deletions
+3
View File
@@ -47,6 +47,9 @@ func (m *Manager) loadTemplates() error {
"eq": func(a, b string) bool {
return a == b
},
"safeHTML": func(s string) template.HTML {
return template.HTML(s)
},
}
// Parse main templates