Merge pull request #1078 from alphagov/sanitize-html-in-templates-using-utils

Sanitize HTML in templates using utils
This commit is contained in:
Chris Hill-Scott
2017-01-20 13:44:52 +00:00
committed by GitHub
5 changed files with 25 additions and 18 deletions

View File

@@ -480,7 +480,7 @@ def test_should_show_preview_letter_message(
mock_get_service_letter_template.assert_called_with(service_id, template_id)
assert mock_letter_preview.call_args[0][0]['message'] == (
'<h2>Subject</h2>\n'
'<p>Your vehicle tax is about to expire</p>'
'<p>Template &lt;em&gt;content&lt;/em&gt; with &amp; entity</p>'
)