Here you can find the source of quoteHtml(String s)
private static String quoteHtml(String s)
//package com.java2s; /*// www. j a va2s.c o m // This software is subject to the terms of the Eclipse Public License v1.0 // Agreement, available at the following URL: // http://www.eclipse.org/legal/epl-v10.html. // You must accept the terms of that agreement to use this software. // // Copyright (C) 2011-2011 Pentaho // All Rights Reserved. */ public class Main { private static String quoteHtml(String s) { return s.replaceAll("&", "&").replaceAll(">", ">") .replaceAll("<", "<"); } }