mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-29 17:25:32 +00:00
18 lines
243 B
Go
18 lines
243 B
Go
package functions
|
|
|
|
import (
|
|
"html/template"
|
|
"strings"
|
|
)
|
|
|
|
func Safe(s string) template.HTML {
|
|
if len(s) == 0 {
|
|
return ""
|
|
}
|
|
return template.HTML(s)
|
|
}
|
|
|
|
func ReplaceSlashParen(s string) string {
|
|
return strings.ReplaceAll(s, "/)", "<p>")
|
|
}
|