I am having a situation where i am using ng-bind-html
for html binding.
I would like to get the first charactor of html content excluding the html tags.
Below is my sample code.
<span class="first-letter">{{firstLetter}}</span>
<div id="myDiv" ng-CLoak data-ng-bind-html="trustAsHtml(data.ContentDescription)" class="{{currentFont}}"></div>
my html string would look like following
<p><span>hii my content</span></p>
the starting and ending tags are un predictable.
i would like to get first letter "h" not "<" Thanks in advance.