Hi , @gospa
This is my test flow:

My compose is to create test json:

(1)Initial variable:

(2)Apply to each action:

(3)The last two actions:

replace(replace(replace(body('Create_HTML_table'),'<','<') , '>','>'),'"','"')
The result is as follows:

Best Regards,
Yueyun Zhang