Please don't use Nokogiri to parse untrusted input. Regular expressions can be used to get the title.