From 5a612c683eb34d0878ec86491556cd8921d63e16 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 10 Mar 2013 22:04:40 +0530 Subject: modified: parsers/QuoteSpecialText.java (regex that recognizes special-text modified) now, HTML special codes/numbers are not quoted by this class. --- parsers/QuoteSpecialText.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/QuoteSpecialText.java b/parsers/QuoteSpecialText.java index 76241cc..91e8760 100644 --- a/parsers/QuoteSpecialText.java +++ b/parsers/QuoteSpecialText.java @@ -33,7 +33,7 @@ public class QuoteSpecialText implements Parser { qmap.put(">",">"); } public String parse(String fileContent) { - Pattern pattern = Pattern.compile("(\\&\\#35\\;)|(\\&)|(\\<)|(\\>)"); + Pattern pattern = Pattern.compile("(\\&(\\w+|\\#\\d+)\\;)|(\\&)|(\\<)|(\\>)"); Matcher matcher = pattern.matcher(fileContent); StringBuffer sbuffer = new StringBuffer(); while(matcher.find() && matcher.group(1)==null) { -- cgit v1.2.3