2👍
✅
Like this:
{% for text in result.highlighted.text %}
<blockquote>
{% with text|striptags as stripped_text %}
{% highlight stripped_text with query %}
{% endwith %}
</blockquote>
{% endfor %}
https://docs.djangoproject.com/en/def/ref/templates/builtins/#with
👤Greg
- [Answered ]-Pydev console: checking variable values seems to be causing code to execute unexpectedly
Source:stackexchange.com