diff --git a/Yesod/AtomFeed.hs b/Yesod/AtomFeed.hs index f3456799..b1da99f3 100644 --- a/Yesod/AtomFeed.hs +++ b/Yesod/AtomFeed.hs @@ -26,7 +26,7 @@ import Yesod.Content import Yesod.Handler import Yesod.Widget import Yesod.FeedTypes -import Text.Hamlet (Hamlet, xhamlet, hamlet, cdata) +import Text.Hamlet (Hamlet, xhamlet, hamlet) import qualified Data.ByteString.Char8 as S8 import Control.Monad (liftM) @@ -67,7 +67,10 @@ entryTemplate arg = #{formatW3 $ feedEntryUpdated arg} #{feedEntryTitle arg} - <content type=html>#{cdata $ feedEntryContent arg} + <content type=html> + \<![CDATA[ + \#{feedEntryContent arg} + ]]> |] -- | Generates a link tag in the head of a widget. diff --git a/yesod-newsfeed.cabal b/yesod-newsfeed.cabal index 64cd6f53..0adbba0f 100644 --- a/yesod-newsfeed.cabal +++ b/yesod-newsfeed.cabal @@ -1,5 +1,5 @@ name: yesod-newsfeed -version: 0.2.0 +version: 0.3.0 license: BSD3 license-file: LICENSE author: Michael Snoyman, Patrick Brisbin @@ -13,9 +13,9 @@ homepage: http://docs.yesodweb.com/ library build-depends: base >= 4 && < 5 - , yesod-core >= 0.8 && < 0.9 + , yesod-core >= 0.9 && < 0.10 , time >= 1.1.4 && < 1.3 - , hamlet >= 0.8 && < 0.9 + , hamlet >= 0.9 && < 0.10 , bytestring >= 0.9 && < 0.10 , text >= 0.9 && < 1.0 exposed-modules: Yesod.AtomFeed