lib/bolognese/readers/schema_org_reader.rb in bolognese-0.9.15 vs lib/bolognese/readers/schema_org_reader.rb in bolognese-0.9.16
- old
+ new
@@ -50,10 +50,10 @@
"is_supplement_to" => schema_org_is_supplement_to(meta),
"is_supplemented_by" => schema_org_is_supplemented_by(meta),
"date_created" => meta.fetch("dateCreated", nil),
"date_published" => date_published,
"date_modified" => meta.fetch("dateModified", nil),
- "description" => { "text" => meta.fetch("description", nil) },
+ "description" => meta.fetch("description", nil).present? ? { "text" => sanitize(meta.fetch("description")) } : nil,
"license" => { "id" => meta.fetch("license", nil) },
"version" => meta.fetch("version", nil),
"keywords" => meta.fetch("keywords", nil)
}
end