diff --git a/app/controllers/text_marquees_controller.rb b/app/controllers/text_marquees_controller.rb index e2dba29..e6ce63a 100644 --- a/app/controllers/text_marquees_controller.rb +++ b/app/controllers/text_marquees_controller.rb @@ -4,11 +4,7 @@ class TextMarqueesController < ApplicationController marquee = Marquee.find(OrbitHelper.widget_custom_value) texts = marquee.marquee_texts.collect do |mqt| doc = Nokogiri::HTML(mqt.title) - if mqt.title.to_s.empty? - title = 'no content' - else - title = doc.css('span').text.empty? ? mqt.title : doc.css('span').text - end + title = doc.text.empty? ? 'no content' : doc.text { "text" => mqt.title, "speed" => mqt.speed,