Don't html-escape ticket title, it's already escaped

This commit is contained in:
fr33domlover 2020-01-17 21:52:29 +00:00
parent f4a5866dec
commit 59d08782ba
3 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,7 @@ import Data.HashMap.Lazy (HashMap)
import Data.Maybe (mapMaybe)
import Data.Text (Text)
import Data.Time.Clock (UTCTime)
import Text.Blaze.Html (preEscapedToHtml)
import Yesod.Core (MonadHandler, newIdent)
import Yesod.Core.Handler (getCurrentRoute, getRequest, YesodRequest (..))
import Yesod.Core.Widget (whamlet)

View file

@ -12,7 +12,7 @@ $# You should have received a copy of the CC0 Public Domain Dedication along
$# with this software. If not, see
$# <http://creativecommons.org/publicdomain/zero/1.0/>.
<h2>#{ticketTitle ticket}
<h2>#{preEscapedToHtml $ ticketTitle ticket}
<div>
Created on #{showDate $ ticketCreated ticket} by

View file

@ -36,7 +36,7 @@ $# <http://creativecommons.org/publicdomain/zero/1.0/>.
<span .ticket-title-column>
<a href=@{TicketR shr prj $ tsNumber ts}>
#{tsTitle ts}
#{preEscapedToHtml $ tsTitle ts}
$forall wf <- tsLabels ts
$maybe wfcol <- workflowFieldColor wf
<span .label#{wfcol}>