Álvaro Mira del Amo
unread,Apr 15, 2025, 5:11:52 AMApr 15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to okapi-users
HTML Filter documentation
Hi all,
I hope this finds you well. A couple of weeks ago I was involved in a customisation of the HTML filter to cater for the needs of a given customer, who needed to force the extraction of the class of a given DIV (because the region specific details that needed to be updated). Whether this should be done at the translation extraction level or not is a different topic and I would like to avoid that discussion.
I ended up creating a rule like this one:
div:
ruleTypes: [INCLUDE]
translatableAttributes:
class:
- class
- MATCHES
- [^wistia_embed.*]
writableLocalizableAttributes: [style]
However, when checking the documentation for the HTML filter, I kind of found that regarding the conditional rules and syntax, there were not many examples (so I ended up checking the actual source code to understand what was supported, etc.). Are there any plans to update the HTML filter docs (last updated in Sept 2022) and include more examples of on top of the pure definitions?
Thanks in advance!
Best,
A.