Now only replacing elements containing the text instead of the whole
element.