calendar widget: escape html in popup
parent
a72d2cdb64
commit
492739eca9
|
@ -10,6 +10,7 @@ import json
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import i3ipc
|
import i3ipc
|
||||||
|
import html
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
if not Path("~/.gcalcli_oauth").expanduser().exists():
|
if not Path("~/.gcalcli_oauth").expanduser().exists():
|
||||||
|
@ -46,7 +47,7 @@ def authuser(evt):
|
||||||
def tooltip(evt):
|
def tooltip(evt):
|
||||||
# todo: location
|
# todo: location
|
||||||
return f"""
|
return f"""
|
||||||
<b>{evt["summary"]}</b>
|
<b>{html.escape(evt["summary"])}</b>
|
||||||
{evt["s"].strftime("%b %d %H:%M")} - {evt["e"].strftime("%H:%M")}
|
{evt["s"].strftime("%b %d %H:%M")} - {evt["e"].strftime("%H:%M")}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue