diff --git a/bibtexbrowser.php b/bibtexbrowser.php index 6b54323..644845d 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -1544,7 +1544,7 @@ class BibEntry { function toEntryUnformatted() { $result = ""; $result .= '
'; // pre is nice when it is embedded with no CSS available - $entry = str_replace('<','<',$this->getFullText()); + $entry = htmlspecialchars($this->getFullText()); if ($this->hasField('url')) { $url = $this->getField('url'); // this is not a parsing but a simple replacement