peridot/vendor/github.com/ProtonMail/gopenpgp/v2/crypto/sanitize_string.go
2024-10-16 13:40:38 +02:00

8 lines
124 B
Go

package crypto
import "strings"
func sanitizeString(input string) string {
return strings.ToValidUTF8(input, "\ufffd")
}