[formatter] implement 'H' conversion (#4164)

to remove HTML tags and unescape HTML entities
This commit is contained in:
Mike Fährmann
2023-06-15 13:07:51 +02:00
parent deff3b434d
commit ce93c460a6
3 changed files with 20 additions and 2 deletions

View File

@@ -437,6 +437,7 @@ _CONVERSIONS = {
"T": util.datetime_to_timestamp_string,
"d": text.parse_timestamp,
"U": text.unescape,
"H": lambda s: text.unescape(text.remove_html(s)),
"g": text.slugify,
"S": util.to_string,
"s": str,