fixes a bug in Javascript progressive enhancement (bug reported by Elvis)

This commit is contained in:
Martin Monperrus
2014-05-15 22:09:24 +02:00
parent 9f230368d9
commit db987616a7
+1 -1
View File
@@ -1544,7 +1544,7 @@ class BibEntry {
function toEntryUnformatted() {
$result = "";
$result .= '<pre class="purebibtex">'; // pre is nice when it is embedded with no CSS available
$entry = str_replace('<','&lt;',$this->getFullText());
$entry = htmlspecialchars($this->getFullText());
if ($this->hasField('url')) {
$url = $this->getField('url');
// this is not a parsing but a simple replacement