Skip to content

Commit

Permalink
Escape quotes, fixing the n-triples syntax for molregno 28310
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Apr 13, 2012
1 parent 59cbf74 commit a51c728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compounds.php
Expand Up @@ -24,7 +24,7 @@
$names = mysql_query("SELECT DISTINCT compound_name FROM compound_records WHERE molregno = $molregno");
while ($nameRow = mysql_fetch_assoc($names)) {
if ($nameRow['compound_name'])
echo data_triple( $molecule, $RDFS . "label", $nameRow['compound_name']);
echo data_triple( $molecule, $RDFS . "label", str_replace("\"", "\\\"", $nameRow['compound_name']) );
}

# get the literature references
Expand Down

0 comments on commit a51c728

Please sign in to comment.