Update changelog and html rendering.

This commit is contained in:
James Cole
2026-03-21 07:01:42 +01:00
parent 7c09278c8e
commit 266cd7d8d0
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
## v6.5.7 - 2026-03-21
<!-- summary: There is a new security policy for AI-generated security advisories and of course, interesting and annoying bugs fixed. -->
<!-- summary: There is a new security policy for AI-generated security advisories and of course, some interesting but annoying bugs fixed. -->
### Fixed
@@ -20,6 +20,14 @@
export default class GenericObjectRenderer {
renderUrl(url, title, text) {
return `<a href="${url}" title="${title}">${text}</a>`;
return `<a href="${url}" title="${this.escapeHtml(title)}">${this.escapeHtml(text)}</a>`;
}
escapeHtml(unsafe) {
return unsafe
.replaceAll("&", "&amp;")
.replaceAll("<", "&lt;")
.replaceAll(">", "&gt;")
.replaceAll('"', "&quot;")
.replaceAll("'", "&#039;");
};
}