TXT filter and inline tags to filter the html code from the Greenshift page builder on WordPress

Dear all,

I received exported text from a website created on WordPress with Greenshift Page Builder. I need to create a filter in order to hide the code and show the text for translation. I have an issue with the text in the special blocks starting with "<!--". 

In this example the text after the textContent must be visible. ANd the text in the div.

Screenshot of HTML code with a comment block containing an image tag. The alt attribute of the image tag is highlighted, indicating the text 'HYGEA WATER SYSTEM - SYSTEM FOR WATER PURIFICATION' to be translated.

In htis second exaple the text in alt should be translated.

I tried with this code with no success:

Screenshot of Trados Studio filter rules interface showing three rules with their opening and closing patterns, tag types, and translatability status. The last rule targets the 'textContent' within comment blocks.

I am attaching the file for testing, if you have any idea how to make the opening and closing pattern for this two particular cases.

Thank you in advance, Sotir

7220.test.zip



Generated Image Alt-Text
[edited by: RWS Community AI at 3:58 PM (GMT 1) on 21 May 2024]
emoji