I would like to make a part of my text bold.
I get a text from a specific file.
"INFORMATION": "Here's an example of text",
I would want that Here's an
to be bold.
"INFORMATION": "<b>Here's an</b> example of text",
"INFORMATION": "<strong>Here's an</strong> example of text"
Then I print it
<span translate>INFORMATION</span>
Instead of getting
Here's an example of text
I get
<b>Here's an</b> example of text
or
<strong>Here's an</strong> example of text
UPDATE
I'm trying innerHTML
<span [innerHTML]="information | translate"></span>
Information is variable containing text
but it's ignoring my html tags, it's printing only text
"INFORMATION": "<b>Here an</b> example of text",
Here's my code containing the text. Then I print it inside<span>
– Alcaidetranslate
your own class or did you use a framework/library? – Rennes