Permalink
Browse files

Escape quotes, fixing the n-triples syntax for molregno 28310

  • Loading branch information...
1 parent 59cbf74 commit a51c728cd963312ca5fdebf75d98878aa5de26d1 @egonw committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 compounds.php
View
@@ -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

0 comments on commit a51c728

Please sign in to comment.