* changed entryEscape
This commit is contained in:
parent
b8a045d163
commit
b7e34eba74
1 changed files with 4 additions and 1 deletions
|
@ -161,7 +161,10 @@ postEntry acid = do
|
|||
getLang "en" = return EN
|
||||
|
||||
entryEscape :: Text -> Text
|
||||
entryEscape = T.replace "\n" "<br>"
|
||||
entryEscape = newlineEscape . newlineRNEscape
|
||||
where
|
||||
newlineEscape = T.replace "\n" "<br>"
|
||||
newlineRNEscape = T.replace "\r\n" "<br>"
|
||||
|
||||
entryList :: AcidState Blog -> BlogLang -> ServerPart Response
|
||||
entryList acid lang = do
|
||||
|
|
Loading…
Reference in a new issue