mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-07 00:46:58 +03:00

* 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>
10 lines
136 B
Go
10 lines
136 B
Go
package util
|
|
|
|
import (
|
|
"html"
|
|
)
|
|
|
|
func EscapeHtmlCode(s string) string {
|
|
encodedString := html.EscapeString(s)
|
|
return encodedString
|
|
}
|