I'm facing a challenge that I have no clue how to tackle.
My goal is to create an object similar to this:
{
text: "hello {param1}",
param1: {
text:"world",
class: "bla"
}
}
The tricky part is that I want to display it based on the text property, like this:
<span> hello <span class="bla"> world </span></span>
Using a component isn't a viable solution for this issue - my only thought so far is utilizing jQuery, but I'd prefer to avoid it. Open to changing the format of the text property if necessary...