Added conversion from text to dom.