jquery to format editor output