HTML Filter: how to tell the parser to "skip" some element

10 views
Skip to first unread message

handika dwi

unread,
Jul 19, 2021, 2:04:49 AM7/19/21
to okapi-users
I notice that I get ambiguous Text Unit like this (acquired from the attached file):

<trans-unit id="tu2">
<source xml:lang="en"><g id="1"><g id="2"></g><g id="3"></g></g></source>
<target xml:lang="fr"><g id="1"><g id="2"></g><g id="3"></g></g></target>
</trans-unit>

It comes from nested HTML element like this (acquired from the attached file):

<div class="ta-expand"><button style="outline: none;" onclick="$(this).toggleClass('ta-expanded'); $('.ta-footer-other-links').slideToggle();"><i class="fa fa-plus" aria-hidden="true"></i><i class="fa fa-minus" aria-hidden="true"></i></button></div>

how do I skip it so the extracted XLIFF looks "better"?
sample-unexpected.html
sample-unexpected.html.xlf

handika dwi

unread,
Jul 19, 2021, 2:24:36 AM7/19/21
to okapi-users
got it on the okf_html config. thank you
Reply all
Reply to author
Forward
0 new messages