about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2023-03-21 17:51:21 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2023-03-21 17:51:21 +0000
commit4212c1b0679da78295d3efc985ddbb62fa83076b (patch)
treeca7130c2c237f18e562d9733d022a788996b397f /src
parent102c8fa29028e3fd501fe297a5d7edc86697f3d9 (diff)
downloadrust-4212c1b0679da78295d3efc985ddbb62fa83076b.tar.gz
rust-4212c1b0679da78295d3efc985ddbb62fa83076b.zip
Add `safe` to number rendering
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/templates/source.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/templates/source.html b/src/librustdoc/html/templates/source.html
index 968b55ac158..a224ff12f44 100644
--- a/src/librustdoc/html/templates/source.html
+++ b/src/librustdoc/html/templates/source.html
@@ -2,9 +2,9 @@
     <pre class="src-line-numbers">
         {% for line in lines.clone() %}
             {% if embedded %}
-                <span>{{line}}</span>
+                <span>{{line|safe}}</span>
             {%~ else %}
-                <a href="#{{line}}" id="{{line}}">{{line}}</a>
+                <a href="#{{line|safe}}" id="{{line|safe}}">{{line|safe}}</a>
             {%~ endif %}
         {% endfor %}
     </pre> {# #}