Something went wrong. Try again.
forked from tailscale/tailscale
Something went wrong. Try again.
1234567891011121314151617// Copyright (c) Tailscale Inc & contributors// SPDX-License-Identifier: BSD-3-Clause
package shared
import ( "bytes" "encoding/xml")
// EscapeForXML escapes the given string for use in XML text.func EscapeForXML(s string) string { result := bytes.NewBuffer(nil) xml.Escape(result, []byte(s)) return result.String()}