Extract heading elements from HTML string.