diff options
author | rsiddharth <rsiddharth@ninthfloor.org> | 2013-03-10 22:04:40 +0530 |
---|---|---|
committer | rsiddharth <rsiddharth@ninthfloor.org> | 2013-03-10 22:04:40 +0530 |
commit | 5a612c683eb34d0878ec86491556cd8921d63e16 (patch) | |
tree | cd48650510d4fefe47287ac304716c9cc5788df4 | |
parent | 67a2c215c1a3b5a4d0d6919fcf1e17814d755513 (diff) |
modified: parsers/QuoteSpecialText.java (regex that recognizes special-text modified)
now, HTML special codes/numbers are not quoted by this class.
-rw-r--r-- | parsers/QuoteSpecialText.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |