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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user