Here you can find the source of sanitizeString(String s)
Parameter | Description |
---|---|
s | a parameter |
public static String sanitizeString(String s)
//package com.java2s; //License from project: Apache License public class Main { /**// ww w . j a v a2 s .c o m * Clean any XML from the string * @param s * @return */ public static String sanitizeString(String s) { return s.replace("<", "").replace(">", "").replace("/>", ""); } }