Converts formatted text to another format