From 559ae343aa72db04e12b94acfa0bec30ed9a11f1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 9 Dec 2016 16:14:27 +0300 Subject: juick-spring-www: merge some work from develop branch, port some templates to Thymeleaf --- .../src/main/java/com/juick/www/util/EncodeUtils.java | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 juick-spring-www/src/main/java/com/juick/www/util/EncodeUtils.java (limited to 'juick-spring-www/src/main/java/com/juick/www/util') diff --git a/juick-spring-www/src/main/java/com/juick/www/util/EncodeUtils.java b/juick-spring-www/src/main/java/com/juick/www/util/EncodeUtils.java new file mode 100644 index 00000000..a444ec4d --- /dev/null +++ b/juick-spring-www/src/main/java/com/juick/www/util/EncodeUtils.java @@ -0,0 +1,10 @@ +package com.juick.www.util; + +/** + * Created by vitalyster on 09.12.2016. + */ +public class EncodeUtils { + public static String encodeSphinx(String str) { + return str.replaceAll("@", "\\\\@"); + } +} -- cgit v1.2.3