Fix HTML rendering in template