Simple HTML Pretty Print

后端 未结 3 649
温柔的废话
温柔的废话 2020-12-09 13:30

http://jsfiddle.net/JamesKyle/L4b8b/

This may be a futile effort, but I personally think its possible.

I\'m not the best at Java

3条回答
  •  盖世英雄少女心
    2020-12-09 14:14

    If you're doing this client-side, and you already have the DOM, then it would be more efficient to serialise it yourself inserting the appropriate tags as you go rather than serialising the whole subtree at once and then trying to reparse it.

提交回复
热议问题