textmate / ruby-on-rails-tmbundle

Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
http://groups.google.com/group/rails-textmate
MIT License
15 stars 22 forks source link

rake_helper.rb does not escape potential HTML characters #4

Open infininight opened 11 years ago

infininight commented 11 years ago

rake_helper.rb should escape HTML characters like < and > as these may occur as output from rake in some situations (e.g running functional tests). If the command is set to output HTML in TextMate, this causes any text to be interpreted as a HTML tag.

For example, the rake functional test output might include the text: "<false> is not true"

If the command result is output as HTML, what shows up in TextMate is: " is not true"

I added:

lines.each do |line| 
  line.replace CGI.escapeHTML(line) 
end

to rake_helper.rb as a hack and it fixes this problem.


Moved from old textmate repository, original report from @allending