> thanks Alexander, > > the setup and code worked, > > one more help, - how do i unescape string in python that was escaped > in javascript and submitted?? > > I'm submitting html that is escaped from the form - escape(data) > How do I unescape the self.request.get('data') in python and then mail > it ? > Python standard library has an escape() function but apparently doesn't have unescape().
You can use this code or google for a better solution: http://blog.modp.com/2008/10/html-unescape-in-python.html By the way, why do you use JavaScript for this? You can try a simple textarea instead: <form action="/send-email" method="post"> Email: <input name="address" type="text"/><br/> Message:<br/> <textarea name="data" rows="10" cols="20">test</textarea><br/> <input type="submit" value="Send"/> </form> This way you don't need to unescape() the message. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---