I have a whatsNewDetail.content string that includes 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>
When I try to use the slice pipe, it doesn't show anything. I suspect that the HTML elements are affecting the slicing process.
<span style="font-size: 13px" [innerHTML]="whatsNewDetail.content | slice:0:15+'...'></span>
What I am aiming for is to slice the text like this:
In nec convalli...
and not like this:
<span style="fo...
Is there a way to apply the slice pipe after the text has been rendered?