Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
Combined with -Xdoclint:all, this enforces strict documentation discipline.
Note: Requires maven-javadoc-plugin version 3.0.0 or higher.
-->
<failOnWarnings>true</failOnWarnings>
<failOnWarnings>false</failOnWarnings>
<additionalOptions>
<!--
Enable strict validation of Javadoc content.
Expand Down Expand Up @@ -202,7 +202,7 @@
<version>${central-publishing-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central-ly</publishingServerId>
<publishingServerId>central-shalousun</publishingServerId>
<autoPublish>false</autoPublish>
</configuration>
</plugin>
Expand Down
1 change: 0 additions & 1 deletion src/main/java/io/github/smartdoc/function/HtmlEscape.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public String call(Object[] params, Context ctx) {
html = html.replace(entry.getKey(), entry.getValue());
}

html = DocUtil.getEscapeAndCleanComment(html);
return DocUtil.replaceNewLineToHtmlBr(html);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public String call(Object[] params, Context ctx) {
xml = xml.replaceAll(entry.getKey(), entry.getValue());
}

return DocUtil.getEscapeAndCleanComment(xml);
return xml;
}

}
6 changes: 1 addition & 5 deletions src/main/java/io/github/smartdoc/utils/DocUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -998,11 +998,7 @@ public static String getEscapeAndCleanComment(String comment) {
if (StringUtil.isEmpty(comment)) {
return "";
}
return comment.replaceAll("&", "&amp;")
.replaceAll("<", "&lt;")
.replaceAll(">", "&gt;")
.replaceAll("\"", "&quot;")
.replaceAll("'", "&apos;");
return comment;
}

/**
Expand Down
Loading