fixed escape characters in notify string
This commit is contained in:
parent
1793a04892
commit
74b30a5c81
2 changed files with 2 additions and 3 deletions
|
@ -763,10 +763,10 @@ func notifyFilter(filters []Filter, filter *Filter, watch *Watch, web *Web, debu
|
|||
|
||||
dataMap := make(map[string]any, 20)
|
||||
for _, f := range filters {
|
||||
dataMap[f.Name] = html.UnescapeString(strings.Join(f.Results, ", "))
|
||||
dataMap[f.Name] = template.HTML(strings.Join(f.Results, ", "))
|
||||
}
|
||||
|
||||
dataMap["Watch"] = watch
|
||||
dataMap["WatchName"] = template.HTML(watch.Name)
|
||||
|
||||
var buffer bytes.Buffer
|
||||
tmpl.Execute(&buffer, dataMap)
|
||||
|
|
1
todo.md
1
todo.md
|
@ -1,6 +1,5 @@
|
|||
# Todo
|
||||
- make generic 'notifier' interface
|
||||
- header/post body for get url ?
|
||||
- unescape notify string
|
||||
- add lua filter
|
||||
- edit button on watch view page
|
Loading…
Add table
Reference in a new issue