https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42047

David Nind <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from David Nind <[email protected]> ---
Not sure how to make this work.

Step 8 is what I expected, but the other tags (p>, <b>, <em>) were allowed as
well.

Do you use disallow to not allow a tag?

Here is what I did:
1. Added an HTML customisation for OpacLibraryInfo for all libraries:
   <p><strong>This is bold</strong></p>
   <p><em>This is italic</em></p>
   <div>
   <p>This is another paragraph with a div</p>
   </div>
2. Before the patch, look at the HTML/source for the Centerville library
information page (OPAC > Libraries > Centerville)
3. Note that all the tags in step 1 are allowed and shown in the HTML.
4. Create the /etc/koha/sites/kohadev/html_scrubber.yaml file with:
   additional_content:
       allow: ["div"]
5. Apply the patch.
6. Restart everything: restart_all
7. Refresh the page.
8. Repeat step 2 - note that only the div is allowed, all the other markup us
removed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to