diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2023-03-21 17:51:21 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2023-03-21 17:51:21 +0000 |
| commit | 4212c1b0679da78295d3efc985ddbb62fa83076b (patch) | |
| tree | ca7130c2c237f18e562d9733d022a788996b397f /src | |
| parent | 102c8fa29028e3fd501fe297a5d7edc86697f3d9 (diff) | |
| download | rust-4212c1b0679da78295d3efc985ddbb62fa83076b.tar.gz rust-4212c1b0679da78295d3efc985ddbb62fa83076b.zip | |
Add `safe` to number rendering
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/templates/source.html | 4 |
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> {# #} |
