function replaceWithSpan(node, styles) {
				each(styles, function(value, name) {
					if (value) {
						dom.setStyle(node, name, value);
					}
				});

				dom.rename(node, 'span');
			}
Converts legacy input to modern HTML.

@class tinymce.LegacyInput
@private