// Created by plusminus on 18:50:47 - 15.12.2008
package org.androad.util;
public class HTMLUtil {
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
// ===========================================================
// Constructors
// ===========================================================
// ===========================================================
// Getter & Setter
// ===========================================================
// ===========================================================
// Methods from SuperClass/Interfaces
// ===========================================================
// ===========================================================
// Methods
// ===========================================================
public static String htmlDecode(final String input){
return input.replace(""", "\"")
.replace(">", ">")
.replace("<", "<")
.replace(" ", " ");
}
public static String htmlEncode(final String input){
return input.replace("\"", """)
.replace(">", ">")
.replace("<", "<")
.replace(" ", " ");
}
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
}