def get(self): code = self.request.get("code") # if other people use http://localhost?code=%code% if code: # <br> == change line self.response.write(printoutput(code.replace("<br>","\n"))) else: self.response.write(html%("",""))
def post(self): code = self.request.get("code") self.response.write(html%(code,"<br />"+printoutput(code)))