Add autoescape support.
Fix the bug that for subsequent tags the attributes are incorrectly mixed.