Render quotes in video source type attr

This commit is contained in:
2022-04-03 15:53:26 +02:00
parent 1b480b8ddb
commit 46c6272213

View File

@@ -10,7 +10,7 @@
<h1>{{ title }}</h1>
<video width="{{ width }}" height="{{ height }}" {% if poster %}poster="{{ poster }}" {% endif %}controls="controls">
{% for source in sources %}
<source src="{{ source.src }}" type='{{ source.type }}' />
<source src="{{ source.src }}" type='{{ source.type|safe }}' />
{% endfor %}
You need a browser that understands HTML5 video and supports {% for i in used_codecs %}{{ i }}{% if not loop.last %} or {% endif %}{% endfor %} codecs.
</video><br />
@@ -33,4 +33,4 @@
<script data-container="commenter-container" src="//www.welmers.net/commenter/js/commenter.js" type="text/javascript"></script>
<script src="static/js/video.js" type="text/javascript"></script>
</body>
</html>
</html>