monperrus / bibtexbrowser

Beautiful publication lists with bibtex and PHP (standalone or in Wordpress)
http://www.monperrus.net/martin/bibtexbrowser/
84 stars 54 forks source link

Text of JavaScript code appearing in the output #118

Closed silarri closed 2 years ago

silarri commented 2 years ago

If I format an entry with "&astext" (e.g., http://webdiis.unizar.es/~silarri/bibtexbrowser.php?bib=pubs.bib&search=sncs2022&astext), I can see in the output some JavaScript code. I think that this did not appear before. Any ideas about how to solve this problem are welcome. Thank you very much.

monperrus commented 2 years ago

Can you try to add into bibtexbrowser.local.php:

<?php
define('BIBTEXBROWSER_USE_PROGRESSIVE_ENHANCEMENT',false);
?>
silarri commented 2 years ago

Thanks a lot! This seems to solve the problem. I had that defined in bibtexbrowser.local with @define, but it seems that it was not working like that.

monperrus commented 2 years ago

Cool!