Author: shane.bryzak(a)jboss.com
Date: 2009-03-13 03:06:43 -0400 (Fri, 13 Mar 2009)
New Revision: 16153
Modified:
validator/trunk/tck-utils/impl/src/main/java/org/hibernate/tck/report/CoverageReport.java
Log:
escape title string
Modified:
validator/trunk/tck-utils/impl/src/main/java/org/hibernate/tck/report/CoverageReport.java
===================================================================
---
validator/trunk/tck-utils/impl/src/main/java/org/hibernate/tck/report/CoverageReport.java 2009-03-12
21:33:48 UTC (rev 16152)
+++
validator/trunk/tck-utils/impl/src/main/java/org/hibernate/tck/report/CoverageReport.java 2009-03-13
07:06:43 UTC (rev 16153)
@@ -590,7 +590,7 @@
out.write(("<h4 class=\"sectionHeader\"
id=\"" + sectionId + "\">Section " +
sectionId + " - " +
- auditParser.getSectionTitle(sectionId) +
"</h4>\n").getBytes());
+ escape(auditParser.getSectionTitle(sectionId)) +
"</h4>\n").getBytes());
for (AuditAssertion assertion : sectionAssertions) {
List<SpecReference> coverage =
getCoverageForAssertion(sectionId, assertion.getId());
@@ -749,6 +749,11 @@
return result;
}
+ private String escape(String value)
+ {
+ return value.replaceAll("<",
"<").replaceAll(">", ">");
+ }
+
private String parseStrikethrough(String text)
{
Matcher m = PATTERN_STRIKETHROUGH.matcher(text);
Show replies by date