diff --git a/lib/phoenix_markdown/engine.ex b/lib/phoenix_markdown/engine.ex index 78c471f..9aa96ba 100644 --- a/lib/phoenix_markdown/engine.ex +++ b/lib/phoenix_markdown/engine.ex @@ -57,7 +57,7 @@ defmodule PhoenixMarkdown.Engine do smart_tag = ~r/<%.*?%>/ markdown = Regex.replace(smart_tag, markdown, &HtmlEntities.decode/1) - uri_smart_tag = ~r/%3C%25+.*?%25%3E/ + uri_smart_tag = ~r/%3C(%25)+.*?%25%3E/ Regex.replace(uri_smart_tag, markdown, &URI.decode/1) end