mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
Prevent jinja2 from autoescaping markup in metadata (#747)
Connected to https://github.com/webrecorder/pywb/issues/727
This commit is contained in:
parent
32e9020fd2
commit
12a9e32129
@ -23,7 +23,9 @@ window.wb_prefix = "{{ wb_prefix }}";
|
||||
<div class="col-12">
|
||||
<label for="search-url" class="lead" aria-label="Search For Col">
|
||||
{% set coll_title = metadata.title if metadata and metadata.title else coll %}
|
||||
{% trans %}Search the {{ coll_title }} collection by url:{% endtrans %}
|
||||
{% autoescape false %}
|
||||
{% trans %}Search the {{ coll_title }} collection by url: {% endtrans %}
|
||||
{% endautoescape %}
|
||||
</label>
|
||||
<input aria-label="url" aria-required="true" class="form-control form-control-lg" id="search-url"
|
||||
name="search" placeholder="{{ _('Enter a URL to search for') }}"
|
||||
@ -170,7 +172,7 @@ window.wb_prefix = "{{ wb_prefix }}";
|
||||
id="collection-metadata-{{ key }}" role="tabpanel">
|
||||
<div class="card inherit-height">
|
||||
<div class="card-body">
|
||||
{{ val }}
|
||||
{{ val | safe }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user