[#5704] Escape HTML characters in generated JavaDoc

This commit is contained in:
lukaseder 2016-12-14 12:08:12 +01:00
parent 7161dc4877
commit b3a086a7a8

View File

@ -4878,7 +4878,8 @@ public class JavaGenerator extends AbstractGenerator {
// [#5704] Do not allow certain HTML entities
return comment
.replace("&", "&")
.replace("<", "&lt;");
.replace("<", "&lt;")
.replace(">", "&gt;");
}
protected void printClassJavadoc(JavaWriter out, Definition definition) {