adding all of botlist, initial add
[botlist.git] / openbotlist / src / org / spirit / servlet / tags / BotListEncodeHtml.java
blobf0ee0c3484686999ba750df5f27783e2080c6ee0
1 /**
2 * Berlin Brown
3 * Jan 4, 2007
4 */
5 package org.spirit.servlet.tags;
7 import java.io.Serializable;
9 /**
10 * This is class is used by botverse.
11 * @author Berlin Brown
14 public class BotListEncodeHtml implements Serializable {
16 /**
19 private static final long serialVersionUID = -4007269620924320835L;
21 public static String encodeUrl(String input) {
23 String str = input;
24 if (str == null) {
25 return str;
28 str = str.replaceAll("&", "&");
29 str = str.replaceAll("<", "&lt;");
30 str = str.replaceAll(">", "&gt;");
31 return str;