ReplaceEntitiesBytes replaces XML entities in the given byte slice according to the provided entity map.
(data []byte, em map[string][]byte)
| 55 | // ReplaceEntitiesBytes replaces XML entities in the given byte slice |
| 56 | // according to the provided entity map. |
| 57 | func ReplaceEntitiesBytes(data []byte, em map[string][]byte) []byte { |
| 58 | return replaceEntities(data, em, bytes.IndexByte) |
| 59 | } |
| 60 | |
| 61 | // ReplaceEntitiesString replaces XML entities in the given string |
| 62 | // according to the provided entity map. |