naitoh / rbpdf

Ruby on Rails TCPDF plugin
GNU Lesser General Public License v2.1
30 stars 21 forks source link

add <code> HTML tag to sanitize_html method #99

Open skalimer0 opened 2 months ago

skalimer0 commented 2 months ago

Hello,

REDMINE add code tag for code sample. If you add code in all tags in your sanitize_html the code sample can be colorized

Before: 336409370-9f924c27-92c3-4821-b0dd-6b8721569375 After: 336409607-f7d51664-c842-43a2-9aee-181e07b49bbe

Thanks

skalimer0 commented 2 months ago

We can't override method on our redmine's plugin because sanitize_html is protected on RBPDF.