Newlines in titles #9

rromanchuk opened this Issue Sep 10, 2011 · 2 comments


None yet
2 participants

rromanchuk commented Sep 10, 2011

This might be controversial, but it might be nice to strip any newlines inside Scraper#title

<title> Carol Bartz exclusive: Yahoo "f---ed me over" - Postcards </title> # page.title

=> "\n\t\t Carol Bartz exclusive: Yahoo "f---ed me over" - \n\t\tPostcards\t"

Ran into above at We could probably do the callee a favor by cleaning up extra markup which is usually not expected for a title.

LMK and I'll check it in..and add the rest of the missing tests


jaimeiniesta commented Sep 10, 2011

Sounds fine to me.

I think we should respect html markup, but not newlines or tabs.


jaimeiniesta commented Apr 28, 2012

Fixed on this commit


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment