Skip to content

Commit

Permalink
replace cgi by html, fixes issue #1110
Browse files Browse the repository at this point in the history
  • Loading branch information
daedadu committed Aug 27, 2020
1 parent 652d2e6 commit 0005314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rdflib/tools/rdf2dot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import rdflib.extras.cmdlineutils

import sys
import cgi
import html
import collections

from rdflib import XSD
Expand Down Expand Up @@ -106,7 +106,7 @@ def label(x, g):
return x

def formatliteral(l, g):
v = cgi.escape(l)
v = html.escape(l)
if l.datatype:
return ""%s"^^%s" % (v, qname(l.datatype, g))
elif l.language:
Expand Down

0 comments on commit 0005314

Please sign in to comment.