optimize --name-url (#884)

This commit is contained in:
ed
2025-10-04 10:45:17 +00:00
parent 38cc809822
commit 9b7f933b78
5 changed files with 12 additions and 6 deletions

View File

@@ -6493,11 +6493,7 @@ class HttpCli(object):
try:
if not self.args.nih:
if self.args.name_url:
url = html_escape(self.args.name_url, True, True)
srv_info.append(f"<a href='{url}'>{self.args.name}</a>")
else:
srv_info.append(self.args.name)
srv_info.append(self.args.name_html)
except:
self.log("#wow #whoa")