Dynamic title based on the <hx> titles or on the first <p> found