Added escaped page source in Meta page

This commit is contained in:
Dirk Alders 2024-11-10 18:39:10 +01:00
parent 77ce338874
commit 584d3d7eb9

View File

@ -1,6 +1,7 @@
from django.conf import settings
from django.contrib.auth.models import User, Group
from django.db import models
from django.utils.html import escape
from django.utils.translation import gettext as _
from simple_history.models import HistoricalRecords
@ -160,7 +161,7 @@ class PikiPage(models.Model):
else:
appendix = "<h1>" + _("Page source") + "</h1>\n"
appendix += "<pre>\n"
appendix += self.page_txt
appendix += escape(self.page_txt)
appendix += "</pre>\n"
#