Skip to content

Commit f8db64b

Browse files
authored
Escape toc text
1 parent db0b414 commit f8db64b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Pod/To/HTML.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ sub do-toc($pod) returns Str {
214214
my proto sub find-headings($node, :$inside-heading){*}
215215
multi sub find-headings(Str $s is raw, :$inside-heading){ $inside-heading ?? $s.trim !! '' }
216216
multi sub find-headings(Pod::FormattingCode $node is raw where *.type eq 'C', :$inside-heading){
217-
my $html = $node.contents.map(*.&find-headings(:$inside-heading));
217+
my $html = $node.contents.map(*.&find-headings(:$inside-heading)).Str.&escape_html;
218218
$inside-heading ?? qq[<code class="pod-code-inline">{$html}</code>] !! ''
219219
}
220220
multi sub find-headings(Pod::Heading $node is raw, :$inside-heading){

0 commit comments

Comments
 (0)