from mealie.services.email.email_service import EmailService, EmailTemplate def test_email_template_escapes_values(): template = EmailTemplate( subject="subject", header_text="header", message_top="", message_bottom="bottom", button_link='https://example.com/reset?token=a&next="x"', button_text="Reset", ) html = template.render_html(EmailService().default_template) assert "header" not in html assert "<b>header</b>" in html assert "