Added escaped page source in Meta page
This commit is contained in:
parent
77ce338874
commit
584d3d7eb9
@ -1,6 +1,7 @@
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib.auth.models import User, Group
|
from django.contrib.auth.models import User, Group
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
from django.utils.html import escape
|
||||||
from django.utils.translation import gettext as _
|
from django.utils.translation import gettext as _
|
||||||
from simple_history.models import HistoricalRecords
|
from simple_history.models import HistoricalRecords
|
||||||
|
|
||||||
@ -160,7 +161,7 @@ class PikiPage(models.Model):
|
|||||||
else:
|
else:
|
||||||
appendix = "<h1>" + _("Page source") + "</h1>\n"
|
appendix = "<h1>" + _("Page source") + "</h1>\n"
|
||||||
appendix += "<pre>\n"
|
appendix += "<pre>\n"
|
||||||
appendix += self.page_txt
|
appendix += escape(self.page_txt)
|
||||||
appendix += "</pre>\n"
|
appendix += "</pre>\n"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user