title: How is styling being applied on selected characters of the string- AngularJS
body: <p>I came across rich text editor in <a href="https://plnkr.co/edit/YYvCQwKc3VnmfcgF5g2d?p=preview" rel="nofollow noreferrer">this plunkr</a> and wanted to know how exactly is the code able to understand that a particular <code>element</code> has to be decorated with <code>bold</code> styling ?</p>
  
  <p>The <code>$container.html()</code> shows proper styling in <code>console</code> but how it knows which part of string was selected for styling ?</p>