Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace cgi by html, fixes issue #1110 #1152

Merged
merged 1 commit into from
Sep 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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