forked from 0x2620/pandora
cleanup use of python-ox api
This commit is contained in:
parent
5aac6ebe22
commit
69b1e6c7b2
10 changed files with 25 additions and 25 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue