# File lib/escape.rb, line 244 244: def html_attr(str) 245: '"' + str.gsub(/[&<>"]/) {|ch| HTML_ATTR_ESCAPE_HASH[ch] } + '"' 246: end