4👍
✅
Use safe
filter to convert that message
object attribute to actual string and compare
--- Your code ---
{% if "signed" in message|safe %}
# Don't display anything
{% else %}
--- Your remaining code ---
Source:stackexchange.com