<div><span></span></div>
转换成
<div> <span></span> </div>
如果你只是想格式化你的代码,可以使用你喜欢的IDE。如果是Eclipse,快捷键大概是ctrl + shift + f。