Fixed Javadoc problems with ">" and "<" symbols.
authorAlexander Smorkalov <alexander.smorkalov@itseez.com>
Wed, 10 Oct 2012 09:28:26 +0000 (13:28 +0400)
committerAlexander Smorkalov <alexander.smorkalov@itseez.com>
Wed, 10 Oct 2012 09:31:03 +0000 (13:31 +0400)
modules/java/generator/rst_parser.py

index 6583ff0..a8d3fbf 100644 (file)
@@ -655,6 +655,8 @@ def mathReplace(match):
     m = match.group(1)
 
     m = m.replace("\n", "<BR>")
+    m = m.replace("<", "&lt")
+    m = m.replace(">", "&gt")
     m = re.sub(r"\\text(tt|rm)?{(.*?)}", "\\2", m)
     m = re.sub(r"\\mbox{(.*?)}", "\\1", m)
     m = re.sub(r"\\mathrm{(.*?)}", "\\1", m)