Skip to content
Snippets Groups Projects
Commit c5193bee authored by Kevin Paxman's avatar Kevin Paxman
Browse files

ISTWCMS-5753: ensure the title in the content report is CSV-safe

parent ae2a491a
No related branches found
No related tags found
1 merge request!269Feature/istwcms 5753 ebremner csv content report
......@@ -90,10 +90,10 @@ class UwDownloadCsvController extends ControllerBase {
// Step through each of the nodes and get the info.
foreach ($nodes as $node) {
// Pull out the info about the node.
// Pull out the info about the node, making sure the title is CSV-safe.
$data = [
'nid' => $node->id(),
'title' => '"' . $node->getTitle() . '"',
'title' => '"' . str_replace('"', '""', $node->getTitle()) . '"',
'type' => $node->type->entity->label(),
'path' => $this->pathAlias->getAliasByPath('/node/' . $node->id()),
'published' => $node->status->value == 1 ? 'yes' : 'no',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment