cleanup use of python-ox api

This commit is contained in:
j 2012-05-27 13:52:12 +02:00
commit 69b1e6c7b2
10 changed files with 25 additions and 25 deletions

View file

@ -139,7 +139,7 @@ def editPage(request):
page, created = models.Page.objects.get_or_create(name=data['name'])
if not created:
page.log()
page.text = ox.parse_html(data['text'])
page.text = ox.sanitize_html(data['text'])
page.save()
response = json_response({'name': page.name, 'text': page.text})
else: