mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
string safety
This commit is contained in:
parent
058f3840e4
commit
79579a07af
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ defmodule Textile.ParserHelpers do
|
|||
|
||||
def remove_linefeeds(text) do
|
||||
text
|
||||
|> to_string()
|
||||
|> String.replace("\r", "")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue