Here you can find the source of sanitizeForHtmlTag(String string)
public static String sanitizeForHtmlTag(String string)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w . ja va 2 s.co m * Escapes HTML tag safely. This function can be applied multiple times. */ public static String sanitizeForHtmlTag(String string) { if (string == null) { return null; } return string.replace("<", "<").replace(">", ">"); } }