diff --git a/xmlx/entitymap.go b/xmlx/entitymap.go index d9e8973..4f6124f 100644 --- a/xmlx/entitymap.go +++ b/xmlx/entitymap.go @@ -49,7 +49,7 @@ func EntityToUtf8(entity string) string { } var arr [4]byte - if size := utf8.EncodeRune(num, arr[0:]); size == 0 { + if size := utf8.EncodeRune(arr[0:], num); size == 0 { return "&#" + entity + ";" }