I have a whatsNewDetail.content string which contains html elements:
<span style="font-family: "Open Sans", Arial, sans-serif; font-size: 14px; text-align: justify;">In nec convallis justo. Quisque egestas mollis nibh non hendrerit. Phasellus tempus sapien in ultricies aliquet. Maecenas nec risus viverra tortor rhoncus venenatis in sit amet enim. Integer id ipsum non leo finibus sagittis in eu velit. Curabitur sed dolor dui. Mauris aliquam magna a ipsum tincidunt tempor vitae sit amet ante. Maecenas pellentesque augue vitae quam faucibus, vel convallis dolor placerat. Pellentesque semper justo a turpis euismod, ac gravida enim suscipit.</span>
Whenever I use the slice pipe, it doesn't display anything. I assume that the html elements is included in the slice.
<span style="font-size: 13px" [innerHTML]="whatsNewDetail.content | slice:0:15+'...'></span>
What I want to achieve is the text to be sliced like:
In nec convalli...
not
<span style="fo...
How can I use the slice pipe after the text is rendered?