From 1fb83a8c3edefbc2a43d26cc6db835e592d65934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Fri, 3 Sep 2010 01:13:15 -0400 Subject: Quote listing Ported the quotes.jsp page from the old quote system. This commit contains some utility classes related to this. DropData is a temporary hack to remove all data in the datastore. TODO: Remove this when we are finished migrating the application. --- src/lq/Strings.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/lq/Strings.java (limited to 'src/lq/Strings.java') diff --git a/src/lq/Strings.java b/src/lq/Strings.java new file mode 100644 index 0000000..f3604f0 --- /dev/null +++ b/src/lq/Strings.java @@ -0,0 +1,12 @@ +package lq; + +public class Strings { + public static final String escape(String raw) { + return raw + .replaceAll("&","&") + .replaceAll("<","<") + .replaceAll(">",">") + .replaceAll(" ","  "); + + } +} -- cgit v1.2.3