summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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(">",">");
}
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) {