fix content not escaping html properly
This commit is contained in:
parent
c25e02dee1
commit
64bf39da29
@ -1,5 +1,6 @@
|
|||||||
# v0.1.18
|
# v0.1.18
|
||||||
- Update deps
|
- Update deps
|
||||||
|
- Fix content not escaping HTML properly
|
||||||
|
|
||||||
# v0.1.17
|
# v0.1.17
|
||||||
- Fix new invite button not working
|
- Fix new invite button not working
|
||||||
|
@ -139,6 +139,8 @@ defmodule MemexWeb.CoreComponents do
|
|||||||
defp display_links(record) do
|
defp display_links(record) do
|
||||||
record
|
record
|
||||||
|> get_content()
|
|> get_content()
|
||||||
|
|> Phoenix.HTML.html_escape()
|
||||||
|
|> Phoenix.HTML.safe_to_string()
|
||||||
|> replace_hyperlinks(record)
|
|> replace_hyperlinks(record)
|
||||||
|> replace_triple_links(record)
|
|> replace_triple_links(record)
|
||||||
|> replace_double_links(record)
|
|> replace_double_links(record)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user