I want to remove outer HTML element from a code snippet to get the content inside including other html elements.
that is,
consider the below code
<p> My Paragraph
<ul>Mylist
<li>Item1</li>
<li>Item2</li>
</ul>
</p>
I want to get the output displayed as below
My Paragraph
<ul>Mylist
<li>Item1</li>
<li>Item2</li>
</ul>
Is this possible ??