Nope. If I did this:
name2: "SC18 <em>Ready-To-Run</em>",
and this:
<p *ng-bind-html* class='title'>{{ x.name2 }}: {{ x.bodyType }}</p>
It stops working (the content for this line displays nothing).
Plunkr:
http://plnkr.co/edit/Mbzn9hzw7l3oR6bWtD1G
On Monday, May 11, 2015 at 10:59:28 AM UTC-7, Steve Husting wrote:
>
> I'm reading an AngularJS book (AngularJS Essentials from Packt) right now
> and it gave the answer: use ng-bind-html to retain the styling.
>
> Book's example:
>
> $scope.appTitle = "< b> Parking</b>";
>
> < h3 ng-bind-html="appTitle"></h3>
>
> I'll check to see if it applies to my example.
>
>
> On Monday, May 11, 2015 at 10:28:05 AM UTC-7, Steve Husting wrote:
>>
>> In this example ...
>>
>> id: 1,
>> letter: "a",
>> title: "Away in a Manger",
>> order: 170,
>> detail: "This is a *< em>song</em>* title."
>>
>> ... if I output the detail contents, the HTML tags don't style the
>> content; instead the < em> tags are spelled out and "song" is styled the
>> same way as the rest of the text. [Please note that I am deliberately
>> putting a space after the < so it shows up in the post and doesn't merely
>> style the text.]
>>
>> Is is possible to include HTML in this way to style the text? Or is it
>> done another way?
>>
>> Thanks!
>>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.