mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-02-17 11:04:22 +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
|
def remove_linefeeds(text) do
|
||||||
text
|
text
|
||||||
|
|> to_string()
|
||||||
|> String.replace("\r", "")
|
|> String.replace("\r", "")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -43,4 +44,4 @@ defmodule Textile.ParserHelpers do
|
||||||
def escape_html(text) do
|
def escape_html(text) do
|
||||||
html_escape(text) |> safe_to_string()
|
html_escape(text) |> safe_to_string()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue