From bugzilla-daemon@bugs.koha-community.org Wed Sep 17 23:18:07 2025
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 40831] New: Attempting to save a notice with html
present and the html checkbox not selected should warn
Date: Wed, 17 Sep 2025 21:18:06 +0000
Message-ID:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1607981463718762128=="
--===============1607981463718762128==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40831
Bug ID: 40831
Summary: Attempting to save a notice with html present and the
html checkbox not selected should warn
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Tools
Assignee: koha-bugs@lists.koha-community.org
Reporter: lisette@bywatersolutions.com
QA Contact: testopia@bugs.koha-community.org
It would be helpful if after editing a notice, when saving it checked that if
there's html in the notice, the html box is selected and warn the user.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
--===============1607981463718762128==--
From bugzilla-daemon@bugs.koha-community.org Wed Sep 17 23:18:17 2025
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 40831] Attempting to save a notice with html present
and the html checkbox not selected should warn
Date: Wed, 17 Sep 2025 21:18:16 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============8235099136366568881=="
--===============8235099136366568881==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40831
Lisette Scheer changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |lucas@bywatersolutions.com
--
You are receiving this mail because:
You are watching all bug changes.
--===============8235099136366568881==--
From bugzilla-daemon@bugs.koha-community.org Thu Sep 18 01:46:02 2025
From: bugzilla-daemon@bugs.koha-community.org
To: koha-bugs@lists.koha-community.org
Subject: [Koha-bugs] [Bug 40831] Attempting to save a notice with html present
and the html checkbox not selected should warn
Date: Wed, 17 Sep 2025 23:46:02 +0000
Message-ID:
In-Reply-To:
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2651865707240144972=="
--===============2651865707240144972==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40831
David Cook changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcook@prosentient.com.au
--- Comment #1 from David Cook ---
This is an interesting idea!
In theory, we could use Javascript for this. For instance:
The output should be like this:
"cool beans"
"awesome"
If you compare the output strings against the input strings, the first one
should be identical while the second one won't match, which indicates that
there was HTML that was parsed in the string.
--
Maybe there's better ways of doing it, but that way jumped out to me. A person
could try to use regex but I think that would be a nightmare.
Of course, if the string didn't contain HTML but there was something that was
interpreted as HTML but wasn't HTML then you could get a false positive...
So it would be important to be able to bypass the warning for sure.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
--===============2651865707240144972==--