Skip to content

formatter.ex: Use Phoenix.HTML for mention/hashtag generation

rinpatch requested to merge formatter-html-safe into develop

Unlike concatenating strings, this makes sure everything is escaped. Tests had to be changed because Phoenix.HTML runs attributes through Enum.sort before generation for whatever reason.

Merge request reports