Here you can find the source of htmlEscape(String str)
public static String htmlEscape(String str)
//package com.java2s; /*//from ww w . j a va2s. com * SK's Minecraft Launcher * Copyright (C) 2010-2014 Albert Pham <http://www.sk89q.com> and contributors * Please see LICENSE.txt for license information. */ public class Main { public static String htmlEscape(String str) { return str.replace(">", ">").replace("<", "<").replace("&", "&"); } }