Bug 41086

Summary: Add a helper method to C4/Scrubber to be able to pass allowed tags back to the template
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: Architecture, internals, and plumbingAssignee: Lucas Gass (lukeg) <lucas>
Status: ASSIGNED --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: andrew, dcook
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40659
GIT URL: Initiative type: ---
Sponsorship status: --- Crowdfunding goal: 0
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 40659    
Bug Blocks:    
Attachments: Bug 41086: Add way to get allowed tags from C4/Scrubber

Description Lucas Gass (lukeg) 2025-10-23 13:52:10 UTC
With more scrubber profiles being setup it is important to pass the allowable tags/rules back to the user so they know what HTML they can use when content is scrubbed.
Comment 1 Lucas Gass (lukeg) 2025-10-23 21:12:02 UTC
Created attachment 188396 [details] [review]
Bug 41086: Add way to get allowed tags from C4/Scrubber
Comment 2 Lucas Gass (lukeg) 2025-10-23 21:12:55 UTC
needs units tests and better POD, but that is the idea :)
Comment 3 David Cook 2025-10-24 03:17:22 UTC
I think this could be a good start. Having a list of allowed tags would make a lot of sense.

Trickier with attributes especially if you're using "rules" or "default", although that's something that could be expanded over time. 

Cool idea I reckon!