Here you can find the source of translate(String source)
protected static String translate(String source)
//package com.java2s; //License from project: Open Source License public class Main { protected static String translate(String source) { // format a string for HTML... String target = source;// w ww .j av a 2 s . c o m return target.replace("<", "<").replace(">", ">"); } }