Hello, below is the code I am working with:
<span [innerHtml]="question.description | SafePipe: 'html'" style="font-weight:500;" class="ml-1"></span>
Upon inspecting my website, I noticed that my <span>
tag contains nested <p>
tags which encapsulate the text content.
<span>
<p> </p> </span>
I am looking to replace these inner <p>
tags with a <span>
tag instead. How can I achieve this in Angular 8?