#how can i format the result on html output

8 messages · Page 1 of 1 (latest)

austere seal
#

Hello
i have an Dataarray from a API that i format with the regex. So the output looks like
<span class="bold-text">AU2304288</span> Ennser[br]Rahmenhalle HWE + Bodenplatte[br]
when i call the output in html with {{data.name}} the html not rewrite for html its only a text like
`<span class="bold-text">AU2301861</span>
Gammer``

what can i do that the row a in bold ?
thx

grizzled agate
#

Pass it as the innerHtml attribute or wrap it with the pre tags

#

If you will see the correct content but no style is applied then try to disable the encapsulation(none)

austere seal
#

it dont work all i tested

austere seal
#

can anybody help me
What i forgot to tell the Values are in a <td> thx

grizzled agate
#

Share your code and what toy have tried

raven sun
#

It seems like it is parsing it as a string instead of HTML. Look at how you are retrieving the result.

austere seal
#

i think i have it. I have the wrong innterHtml Tag