string safety

This commit is contained in:
byte[] 2019-12-20 09:51:50 -05:00
parent 058f3840e4
commit 79579a07af

View file

@ -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