aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <rsiddharth@ninthfloor.org>2013-03-10 22:04:40 +0530
committerrsiddharth <rsiddharth@ninthfloor.org>2013-03-10 22:04:40 +0530
commit5a612c683eb34d0878ec86491556cd8921d63e16 (patch)
treecd48650510d4fefe47287ac304716c9cc5788df4
parent67a2c215c1a3b5a4d0d6919fcf1e17814d755513 (diff)
downloadscruf-5a612c683eb34d0878ec86491556cd8921d63e16.tar.gz
scruf-5a612c683eb34d0878ec86491556cd8921d63e16.tar.bz2
scruf-5a612c683eb34d0878ec86491556cd8921d63e16.tar.xz
scruf-5a612c683eb34d0878ec86491556cd8921d63e16.zip
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.java2
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(">","&gt;");
}
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) {