0.6.1
- Security: HTML-escape metatag values when rendering. Previously, values
containing
",<or>were interpolated into attributes and elements without escaping, allowing HTML/script injection (XSS) when metatag content was derived from user-controllable data. This was a regression introduced in0.4.0when tag building stopped relying onphoenix_html. - Relax
phoenix_live_viewversion requirement from~> 1.2.0to>= 1.0.0
0.6.0
Add support for
phoenix_live_viewMigrate: Add
{Metatags.LiveView, {:init, config}}as anon_mountoption to yourlive_sessiondefinitions in your router.Note: Live views own function for changing the page title will currently clash with metatags. It's recommented to for now rely on Metatags version only. If this becomes a problem for you, please open up an issue in the repository and we'll find a way.
0.5.0
- Set canonical URL to metatags (unless set) before printing
0.4.0
- Remove reliance on
phoenix_htmlto build tags - Relax
phoenix_htmlversions
0.3.2
- Update
phoenix_htmlto~> 3.1
0.3.1
Require elixir 1.10
Add support for common
<link>tags:next,canonical,alternateandapple-touch-icon-precomposedAdd
Metatags.put/4to enable extra attributes to be set on the metatags. One example would be:Metatags.put(conn, "alternate", "https://my-url.se", hreflang: "sv_SE")
0.3.0
Move configuration of default values to the plug definition
Extract the plug to
Metatags.PlugMigrate: First, change the plug from
MetatagstoMetatags.Plug. After that you can move whatever you have in your configuration and put behindplug Metatags.Plugin your router. If you require environment specific defaults, useApplication.get_env/3.
0.2.2
- Add
[String.t()]toMetatags.put/3type spec - Replace
ESpecwithExUnitin internal test suite