Skip to content

Commit

Permalink
Notification - Templates - Adding an example of how to use URL encodi…
Browse files Browse the repository at this point in the history
…ng with tokens
  • Loading branch information
dgtlmoon committed Jan 22, 2024
1 parent 0439155 commit 9679389
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changedetectionio/templates/_common_fields.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
<p>
For JSON payloads, use <strong>|tojson</strong> without quotes for automatic escaping, for example - <code>{ "name": {{ '{{ watch_title|tojson }}' }} }</code>
</p>
<p>
URL encoding, use <strong>|urlencode</strong>, for example - <code>gets://hook-website.com/test.php?title={{ '{{ watch_title|urlencode }}' }}</code>
</p>
</div>
</div>
<div class="pure-control-group">
Expand Down

0 comments on commit 9679389

Please sign in to comment.