change all tags in template tot non-selfclosing