mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #1983 from driscoll/bugfixes
Replacing deprecated method from cgi with html.escape()
This commit is contained in:
commit
43fa246bf2
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ snippet #577349 on http://code.activestate.com.
|
|||
"""
|
||||
|
||||
import re
|
||||
import cgi
|
||||
from html import escape as html_escape
|
||||
from .ansi import *
|
||||
|
||||
|
||||
|
|
@ -304,7 +304,7 @@ class TextToHTMLparser(object):
|
|||
"""
|
||||
cdict = match.groupdict()
|
||||
if cdict["htmlchars"]:
|
||||
return cgi.escape(cdict["htmlchars"])
|
||||
return html_escape(cdict["htmlchars"])
|
||||
elif cdict["lineend"]:
|
||||
return "<br>"
|
||||
elif cdict["firstspace"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue