Skip to content

Commit 56aeb65

Browse files
authored
Merge pull request #1299 from plotly/escape-html-in-codeblocks
escape xml in example code blocks
2 parents 421d29d + b750c18 commit 56aeb65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_includes/auto_examples.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h4 id="{{ example.name | replace:' ','-' | remove:',' | downcase | strip_html }
1212
{% endif %}
1313
{% if example.content != "" %}
1414
<div class="z-depth-1">
15-
<pre><code class="{{page.language}}">{{ example.content }}</code></pre>
15+
<pre><code class="{{page.language}}">{{ example.content | xml_escape }}</code></pre>
1616
</div>
1717
{% endif %}
1818
{% if example.description %}

0 commit comments

Comments
 (0)