Skip to content

Commit

Permalink
Merge pull request #973 from alphagov/html-safe-withdrawal-notice-exp…
Browse files Browse the repository at this point in the history
…lanation

Mark withdrawal notice explanation HTML as safe
  • Loading branch information
andrewgarner authored Jul 19, 2018
2 parents 0f82cd9 + 45aecb3 commit d635312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/content_item/withdrawable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def withdrawal_notice_component
if withdrawn?
{
title: withdrawal_notice_title,
description_govspeak: withdrawal_notice["explanation"],
description_govspeak: withdrawal_notice["explanation"]&.html_safe,
time: withdrawal_notice_time
}
end
Expand Down

0 comments on commit d635312

Please sign in to comment.