Browse Source

Changed code to use new rune type unicode code points.

master
jim teeuwen 11 years ago
parent
commit
0ecfd7fd99
  1. 2
      entitymap.go

2
entitymap.go

@ -47,7 +47,7 @@ func EntityToUtf8(entity string) string { @@ -47,7 +47,7 @@ func EntityToUtf8(entity string) string {
}
var arr [4]byte
if size := utf8.EncodeRune(arr[:], num); size == 0 {
if size := utf8.EncodeRune(arr[:], rune(num)); size == 0 {
return "&#" + entity + ";"
}

Loading…
Cancel
Save