Mark search query as safe in askama template

This commit is contained in:
Matthew Esposito 2023-01-03 16:53:44 -05:00
parent 0ff92cbfe3
commit 398f5aaf3a
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
{% block content %}
<div id="column_one">
<form id="search_sort">
<input id="search" type="text" name="q" placeholder="Search" value="{{ params.q }}" title="Search libreddit">
<input id="search" type="text" name="q" placeholder="Search" value="{{ params.q|safe }}" title="Search libreddit">
{% if sub != "" %}
<div id="inside">
<input type="checkbox" name="restrict_sr" id="restrict_sr" {% if params.restrict_sr != "" %}checked{% endif %}>