Skip to content

Commit 3232b83

Browse files
committed
Escape HTML chars in titles
1 parent c2ef4d1 commit 3232b83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"bufio"
77
"flag"
88
"fmt"
9+
"html"
910
"io"
1011
"log"
1112
"os"
@@ -520,6 +521,8 @@ func (p *TripleAggregateToWikiPageConverter) convertUriToWikiTitle(uri string, u
520521
factTitle = str.Replace(factTitle, "[", "(", -1)
521522
factTitle = str.Replace(factTitle, "]", ")", -1)
522523

524+
factTitle = html.EscapeString(factTitle)
525+
523526
if uriType == URITypePredicate {
524527
pageTitle = "Property:" + factTitle
525528
} else if uriType == URITypeClass {

0 commit comments

Comments
 (0)