blob: cadbb11d016ac6ff2c5fccb970645a1ba1929ea6 [file] [log] [blame]
package de.ids_mannheim.korap.util;
/**
* @author Nils Diewald
*
* A collection of methods to deal with Bytes and Byte arrays.
*/
public class KorapHTML {
/**
* Encode a string HTML secure.
*
* @param text The string to encode.
*/
public static String encodeHTML (String text) {
return
text.replace("&", "&")
.replace("<", "&lt;")
.replace(">", "&gt;")
.replace("\"", "&quot;");
};
};