mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +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
|
||||
|
||||
|
@ -43,4 +44,4 @@ defmodule Textile.ParserHelpers do
|
|||
def escape_html(text) do
|
||||
html_escape(text) |> safe_to_string()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue