var interpolation in item_has_attribute 

Added double quotes around #{item} in  item_has_attribute to allow for variable interpolation. This is related to issue #451
Changed quoting to eliminate escape characters.
Merge pull request #189 from rchiav/patch-1

var interpolation in item_has_attribute