Optimized HTML beautifier.