This repository has been archived on 2020-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
cgi-pw_manager/functions/htmlsyntaxfc.py

9 lines
144 B
Python
Raw Normal View History

2017-12-20 00:39:22 +01:00
#!/usr/bin/python3.5
import re
def htmlsyntax(DATA):
DATA = re.sub('<', '&lt', DATA)
DATA = re.sub('>', '&gt', DATA)
return(DATA)