Skip to content

Commit 2d4d38f

Browse files
committed
Escape html in title
1 parent 168771f commit 2d4d38f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

doc/_ext/scenario_directive.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
2222
"""
2323

24+
import html
2425
import os
2526
import re
2627
from typing import Tuple
@@ -81,7 +82,7 @@ def run(self):
8182
.. raw:: html
8283
8384
<details>
84-
<summary><strong>Example</strong>: {scenario_title}</summary>
85+
<summary><strong>Example</strong>: {html.escape(scenario_title)}</summary>
8586
8687
.. literalinclude:: {feature_file}
8788
:language: gherkin

0 commit comments

Comments
 (0)