Thank you.
I am super impressed by your debugging - that mod certainly worked!
In my use case I am using a Word template to create a template so the Alt attribute is important to my application. I need to add alt='|img_qrcode|' (including placeholders) but replaceVariableByHTML does not carry the alt value but instead replaces it with the name of the image file ie alt='qrcode.png'.
Is this by design or is there a way to do this?
Regards