Business intelligence made simple
Fixed truncation in middle of tag, part 2 [skip ci]
Andrew Kane3ffc2fff0b61
diff --git a/app/controllers/blazer/queries_controller.rb b/app/controllers/blazer/queries_controller.rbindex bbe885b1..ed29c4e9 100644--- a/app/controllers/blazer/queries_controller.rb+++ b/app/controllers/blazer/queries_controller.rb@@ -267,7 +267,7 @@ module Blazer{# Mapbox.js does sanitization with https://github.com/mapbox/sanitize-caja# but we should do it here as well- title: r.each_with_index.map { |v, i| i == lat_index || i == lon_index ? nil : "<strong>#{ERB::Util.html_escape(@columns[i])}:</strong> #{ERB::Util.html_escape(v)}" }.compact.join("<br />").truncate(140, separator: " "),+ title: r.each_with_index.map { |v, i| i == lat_index || i == lon_index ? nil : "<strong>#{ERB::Util.html_escape(@columns[i])}:</strong> #{ERB::Util.html_escape(v)}" }.compact.join("<br>").truncate(140, separator: " "),latitude: r[lat_index],longitude: r[lon_index]}