summaryrefslogtreecommitdiffstats
path: root/bin/gen_release_notes.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/gen_release_notes.py')
-rwxr-xr-xbin/gen_release_notes.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py
index 4ef4facf873..57f73ee1bd5 100755
--- a/bin/gen_release_notes.py
+++ b/bin/gen_release_notes.py
@@ -38,6 +38,9 @@ CURRENT_GL_VERSION = '4.6'
CURRENT_VK_VERSION = '1.1'
TEMPLATE = Template(textwrap.dedent("""\
+ <%!
+ import html
+ %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
@@ -89,7 +92,7 @@ TEMPLATE = Template(textwrap.dedent("""\
<ul>
%for f in features:
- <li>${f}</li>
+ <li>${html.escape(f)}</li>
%endfor
</ul>
@@ -97,7 +100,7 @@ TEMPLATE = Template(textwrap.dedent("""\
<ul>
%for b in bugs:
- <li>${b}</li>
+ <li>${html.escape(b)}</li>
%endfor
</ul>
@@ -106,9 +109,9 @@ TEMPLATE = Template(textwrap.dedent("""\
<ul>
%for c, author in changes:
%if author:
- <p>${c}</p>
+ <p>${html.escape(c)}</p>
%else:
- <li>${c}</li>
+ <li>${html.escape(c)}</li>
%endif
%endfor
</ul>