Skip to content

Commit 9164b90

Browse files
removed html tags, extra spaces, and escaped special chars in abstract
1 parent b7b5382 commit 9164b90

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

interpro/interpro.php

+4
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ function Parse($xml)
179179
if(isset($pubs)) {
180180
$abstract = str_replace($pubs['pid'],$pubs['pmid'],$abstract);
181181
}
182+
$abstract= preg_replace('/(?i)<[^>]*>/', ' ', $abstract); #remove html tags
183+
$abstract = trim(preg_replace("/\s+/",' ',$abstract)); # remove extra spaces
184+
$abstract = addslashes($abstract);
185+
182186
parent::addRDF(
183187
parent::triplifyString($s,"dc:description",$abstract)
184188
);

0 commit comments

Comments
 (0)