Browse Source

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

pull/20/head
Martin Monperrus 11 years ago
parent
commit
db987616a7
  1. 2
      bibtexbrowser.php

2
bibtexbrowser.php

@ -1544,7 +1544,7 @@ class BibEntry {
function toEntryUnformatted() { function toEntryUnformatted() {
$result = ""; $result = "";
$result .= '<pre class="purebibtex">'; // pre is nice when it is embedded with no CSS available $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')) { if ($this->hasField('url')) {
$url = $this->getField('url'); $url = $this->getField('url');
// this is not a parsing but a simple replacement // this is not a parsing but a simple replacement

Loading…
Cancel
Save