wireguard-ui/util/html.go
Sam Gleske 2084a81297 Fix PreUp, PostUp, PreDown, and PostDown
* Escaping HTML in several places.
* Adds PreUp config when one didn't exist.
* Adds environment variable support for PreUp and PreDown.

closes #549
closes #655
closes #656

See also
--------

- https://github.com/samrocketman/addons-homeassistant/issues/9

Co-authored-by: Robert Willert <rwillert@users.noreply.github.com>
2025-05-20 20:39:13 -04:00

10 lines
136 B
Go

package util
import (
"html"
)
func EscapeHtmlCode(s string) string {
encodedString := html.EscapeString(s)
return encodedString
}