Changeset 154
- Timestamp:
- 07/04/2007 17:36:01 (17 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
lib/hpricot/tag.rb (modified) (1 diff)
-
test/test_builder.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/hpricot/tag.rb
r139 r154 101 101 @raw_attributes.map do |aname, aval| 102 102 " #{aname}" + 103 (aval ? "= \"#{aval}\"" : "")103 (aval ? "=#{html_quote aval}" : "") 104 104 end.join 105 105 end -
trunk/test/test_builder.rb
r125 r154 22 22 assert_equal "\342\202\254\342\200\242", doc.at("text()").to_s 23 23 end 24 25 def test_escaping_attrs 26 text = "<span style='font-family:\"MS Mincho\"'>Some text</span>" 27 assert_equal "<span style=\"font-family:\\\"MS Mincho\\\"\">Some text</span>", 28 Hpricot(text).to_html 29 end 24 30 end
