[util.strings] add parameterize()

This commit is contained in:
Mort Yao 2016-03-26 16:49:28 +01:00
parent bca2c3eed3
commit 7af203e8e3

View File

@ -23,3 +23,6 @@ from .fs import legitimize
def get_filename(htmlstring):
return legitimize(unescape_html(htmlstring))
def parameterize(string):
return "'%s'" % string.replace("'", r"'\''")