[#5704] Escape HTML characters in generated JavaDoc
This commit is contained in:
parent
7161dc4877
commit
b3a086a7a8
@ -4878,7 +4878,8 @@ public class JavaGenerator extends AbstractGenerator {
|
||||
// [#5704] Do not allow certain HTML entities
|
||||
return comment
|
||||
.replace("&", "&")
|
||||
.replace("<", "<");
|
||||
.replace("<", "<")
|
||||
.replace(">", ">");
|
||||
}
|
||||
|
||||
protected void printClassJavadoc(JavaWriter out, Definition definition) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user