mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-30 12:33:52 -06:00
19 lines
443 B
Python
19 lines
443 B
Python
##########################################################################
|
|
#
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
|
|
# This software is released under the PostgreSQL Licence
|
|
#
|
|
#########################################################################
|
|
|
|
"""Utilities for HTML"""
|
|
|
|
import cgi
|
|
|
|
|
|
def safe_str(x):
|
|
return cgi.escape(x).encode(
|
|
'ascii', 'xmlcharrefreplace'
|
|
).decode()
|