summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/build.py b/build.py
index 50c6a36..51b2146 100755
--- a/build.py
+++ b/build.py
@@ -3,6 +3,7 @@ import glob
import json
import os
import shutil
+import html
import toml
@@ -73,6 +74,7 @@ def write_features(f, feature_data):
features[key]['url'],
)
)
+ data['title'] = data['flag']
features[key] = data
@@ -82,9 +84,9 @@ def write_features(f, feature_data):
url = data['url']
if url:
f.write(f' href="{url}"')
-
f.write('>')
- f.write(feat)
+ # TODO: convert `..` into <code>..</code>
+ f.write(html.escape(data['title']))
f.write('</a></li>')
f.write('</ul>')