I am struggling with formatting a specific part of the text in my Ionic HTML list of cards. The content is populated by objects defined in my JS controller as shown below:
<div class="list">
<div class="card" ng-repeat="item in eventsDay19">
<div class="item item-divider">
<b>{{item.eventHour}}</b> - <span style="font-style: italic;font-weight: bold;">{{item.eventTitle}}</span>
</div>
<div class="item item-text-wrap">
{{item.eventPlace}}<br />{{item.eventText}}
</div>
</div>
</div>
The challenge I'm facing is trying to format a specific substring within the 'eventText' member using bold letters ('D.XXX-XXXX'). Despite various attempts, including adding CSS and HTML format tags around the substring or using the bold() JavaScript function, I have not been successful.
It seems that directly applying formatting tags on the JS string does not translate to HTML code. If anyone could shed some light on the underlying mechanism of how JavaScript and HTML interact in this scenario, it would be greatly appreciated.
Thank you in advance,
Jose