I need to cut rich text field value to render only 100 first symbols and '...' at the end. The issue is rich text field value looks like
<strong style="background-color: #ffffff; margin: 0px; padding: 0px; text-align: justify;">Lorem Ipsum</strong><span style="background-color: #ffffff; text-align: justify;"> is<em><strong> simply dummy text of the printin</strong></em>g and typesettin<a href="http://https://sitecore.stackexchange.com/">g indust</a>ry. Lorem Ipsu<em><strong>m has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It </strong></em>has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum</span>
So if I use a simple substring function I will have
<strong style="background-color: #ffffff; margin: 0px; padding: 0px; text-align: justify;">Lorem I
=> Lorem I
instead of
<strong style="background-color: #ffffff; margin: 0px; padding: 0px; text-align: justify;">Lorem Ipsum</strong><span style="background-color: #ffffff; text-align: justify;"> is<em><strong> simply dummy text of the printin</strong></em>g and typesettin<a href="http://https://sitecore.stackexchange.com/">g indust</a>ry. Lorem Ipsu<em><strong>m has been the
=>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
Probably sitecore libraries has a functionality to complete it?