Solved xf:avatar backtick interpolation

This topic has been solved
P

pet1234

Guest
I am currently working with a system that involves an object called $staff_member. The staff member object has various attributes, one of which is 'username'. The system utilizes the <xf:avatar> function to generate avatars for the staff member.

The system builds an html structure out of strings that represents html code, as later I intend to use innerHTML to display it on the webpage.

This is the line I try to store as a string:
<xf:avatar user="{$staff_member}" size="s" />...

Read more

Continue reading...