Properly escape HTML based templates.