make justext accept both parsed html tree and raw html