public class InputSanitizer extends Object
Invalid characters/entity are replaced by the "unknown" character (�).
Constructor and Description |
---|
InputSanitizer() |
Modifier and Type | Method and Description |
---|---|
static String |
sanitizeText(String s)
Replace invalid characters by the unknown character (�).
|
static String |
sanitizeXml(String xml)
Replace invalid entities by the entity corresponding to the unknown
character (�).
|
Copyright © 2011–2014. All rights reserved.