Alpha first commit
This commit is contained in:
16
functions/headfoot.py
Executable file
16
functions/headfoot.py
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/python3.5
|
||||
|
||||
# DEBUG
|
||||
import cgitb
|
||||
cgitb.enable()
|
||||
|
||||
def printheader():
|
||||
print("Content-Type: text/html\n")
|
||||
|
||||
print ("""
|
||||
<html>
|
||||
<title> Ma Jolie petite Page</title>
|
||||
""")
|
||||
|
||||
def printfooter():
|
||||
print("</html>")
|
8
functions/htmlsyntaxfc.py
Normal file
8
functions/htmlsyntaxfc.py
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/python3.5
|
||||
|
||||
import re
|
||||
|
||||
def htmlsyntax(DATA):
|
||||
DATA = re.sub('<', '<', DATA)
|
||||
DATA = re.sub('>', '>', DATA)
|
||||
return(DATA)
|
Reference in New Issue
Block a user