h* elements are remove from return text

With a succession of : 
&lt;h1&gt;
&lt;p&gt;
&lt;h1&gt;
&lt;p&gt;
&lt;h1&gt;
&lt;p&gt;
Only the p content is return.
h elements are not considered as relevant text