summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-11-27 08:45:18 +0100
committerMartin Fischer <martin@push-f.com>2021-11-27 12:39:00 +0100
commitababb3164ec649d090b361595cb86ee450a0fde1 (patch)
tree1c7cdae0f0af97a48e07235db3fb952d1b35e177
parentbf351b8247da142213a5df3b0694a2c09584bceb (diff)
html: display titles
-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>')