calendar widget: escape html in popup

master
Yorick van Pelt 2023-09-23 15:53:06 +02:00
parent a72d2cdb64
commit 492739eca9
Signed by: yorick
GPG Key ID: D8D3CC6D951384DE
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import json
import subprocess
import sys
import i3ipc
import html
from pathlib import Path
if not Path("~/.gcalcli_oauth").expanduser().exists():
@ -46,7 +47,7 @@ def authuser(evt):
def tooltip(evt):
# todo: location
return f"""
<b>{evt["summary"]}</b>
<b>{html.escape(evt["summary"])}</b>
{evt["s"].strftime("%b %d %H:%M")} - {evt["e"].strftime("%H:%M")}
"""