peridot/vendor/github.com/ProtonMail/gopenpgp/v2/crypto/sanitize_string.go

8 lines
124 B
Go
Raw Normal View History

2024-10-16 11:40:38 +00:00
package crypto
import "strings"
func sanitizeString(input string) string {
return strings.ToValidUTF8(input, "\ufffd")
}