public class XMLHelper extends Object
Constructor and Description |
---|
XMLHelper() |
Modifier and Type | Method and Description |
---|---|
static String |
protectSpecialCharacters(String originalUnprotectedString)
Returns the string where all non-ascii and <, &, > are encoded as numeric entities.
|
static String |
restoreSpecialCharacters(String xml) |
public static String protectSpecialCharacters(String originalUnprotectedString)
originalUnprotectedString
- original string which may contain characters either reserved in XML or with different representation
in different encodings (like 8859-1 and UFT-8)Copyright © 2000–2022 EPAM Systems. All rights reserved.