Skip to content

Instantly share code, notes, and snippets.

@sdepold
Created October 7, 2011 11:07
Show Gist options
  • Save sdepold/1270079 to your computer and use it in GitHub Desktop.
Save sdepold/1270079 to your computer and use it in GitHub Desktop.
strange behavior of image_tag
tag("img", {:src => 'http://de.example.com?foo=bar&hello=world'})
=> "<img src=\"http://de.example.com?foo=bar&amp;hello=world\" />"
image_tag('http://de.example.com?foo=bar&hello=world')
=> "<img alt=\"De\" src=\"http://de.example.com?foo=bar&amp;hello=world\" />"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment