2 bugfixes.
2 bugfixes.

Remove the hidden attr if it's set on the template.
Make sure that text and attributes is properly replaced.

janga1997/Patterns,garbas/Patterns,janga1997/Patterns,garbas/Patterns,janga1997/Patterns,garbas/Patterns