Skip to content

Commit 65bb1fa

Browse files
strip tags from link title, limit to the most proximal 4 parents.
1 parent 29fc12c commit 65bb1fa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/tools/templates/customlocaltoc.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<div>
99
<div>
1010
{%- if parents %}
11-
{%- for parent in parents %}
11+
{%- for parent in parents[-4:] %}
1212
<h{{ loop.index0 + 3 }}>
13-
<a href="{{ parent.link|e }}"
14-
title="{{ parent.title }}">
13+
<a href="{{ parent.link|e }}"
14+
title="{{ parent.title|striptags }}">
1515
{{ parent.title }}
1616
</a>
1717
</h{{ loop.index0 + 3 }}>

0 commit comments

Comments
 (0)