fixed tags parsing; added { character escape