h* elements are removed from returned 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