We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7b5382 commit 9164b90Copy full SHA for 9164b90
interpro/interpro.php
@@ -179,6 +179,10 @@ function Parse($xml)
179
if(isset($pubs)) {
180
$abstract = str_replace($pubs['pid'],$pubs['pmid'],$abstract);
181
}
182
+ $abstract= preg_replace('/(?i)<[^>]*>/', ' ', $abstract); #remove html tags
183
+ $abstract = trim(preg_replace("/\s+/",' ',$abstract)); # remove extra spaces
184
+ $abstract = addslashes($abstract);
185
+
186
parent::addRDF(
187
parent::triplifyString($s,"dc:description",$abstract)
188
);
0 commit comments