NIHVIVO-1194 stripping characters invalid in XML from user input
This commit is contained in:
parent
e844444d37
commit
0b1e24b7e9
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ public class EditN3Utils {
|
|||
* @return
|
||||
*/
|
||||
public static String stripInvalidXMLChars(String in) {
|
||||
if (in == null) {
|
||||
return null;
|
||||
}
|
||||
StringBuffer out = new StringBuffer();
|
||||
for (int i = 0; i < in.length(); i++) {
|
||||
char c = in.charAt(i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue