I'm using Django Haystack to make search on my site, but i need to filter all html code of my TextField with the template filter "safe" and highlight the search results according to search criteria.
Is there a way to do this? I've tried with
{% highlight result.object.content|safe with query %}
but it doesn't work.
Dont you forget to load {% highlight %} template tag?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With