Now wraps the input with a div to make sure text elements are processed properly