Google Spreadsheets importxml adding unwanted "breaks" in text -


i using importxml function google spreadsheets. able content want in cell want text gets imported seemingly random line breaks.

example:

in cell a2 have url: http://www.ford.com/cars/fusion/incentives/

in cell b2 have =concatenate(importxml(a2,"//div[@class='incentives_header']"))

what gets pulled is:

"pricing / incentives , offersfind latest purchase or leasing offers next ford vehicle, ford /* unwanted line break here /
credit financing options , other details discuss local ford dealer./
no space after period*/special programs/*should line break here. "special programs" h2 */explore special program offers qualified buyers life experiences."

what should is:

pricing / incentives , offers find latest purchase or leasing offers next ford vehicle, ford credit financing options , other details discuss local ford dealer. special programs explore special program offers qualified buyers life experiences.

see if works you.

=substitute(substitute(regexreplace(b2,"\n",""),",",char(10)),".",char(10))


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -