Skip to content

Commit

Permalink
escape more fields
Browse files Browse the repository at this point in the history
  • Loading branch information
ali1k committed Oct 25, 2018
1 parent a543d32 commit 8d9ff2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions decksToRDF.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ swR:${id}-${item.id} swV:hasContentItem <https://slidewiki.org/deck/${id}-${item
console.log(`swR:${id} swV:timestampDate "${dt.toLocaleDateString()}" .`);
}
}
if(prop === 'description'){
console.log(`swR:${id} swV:${prop} """${obj[prop] ? JSON.stringify(obj[prop]) : '-'}""" .`);
continue;
}
console.log(`swR:${id} swV:${prop} """${obj[prop] ? obj[prop] : '-'}""" .`);
}
}
Expand Down
2 changes: 1 addition & 1 deletion slidesToRDF.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ swR:${id}-${item.id} a swV:SlideRevision ;
swV:timestampDay "${dt.getDate()}" ;
swV:timestampDate "${dt.toLocaleDateString()}" ;
swV:content """${encodeURIComponent(item.content)}""" ;
swV:speakernotes """${item.speakernotes ? item.speakernotes : '-'}""" ;
swV:speakernotes """${item.speakernotes ? encodeURIComponent(item.speakernotes) : '-'}""" ;
prv:createdBy swUserR:${item.user} .`);

});
Expand Down

0 comments on commit 8d9ff2e

Please sign in to comment.