From 5f40c61f90f6369a139554463025aad432567156 Mon Sep 17 00:00:00 2001 From: Klaus-Hendrik Wolf Date: Mon, 8 Jun 2015 02:09:05 +0200 Subject: [PATCH] Added transformation for TeX characters ---, --, \%, \& --- bibtexbrowser.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bibtexbrowser.php b/bibtexbrowser.php index a76f05e..7851dbb 100755 --- a/bibtexbrowser.php +++ b/bibtexbrowser.php @@ -905,6 +905,12 @@ function latex2html($line) { // in order not to mix with the HTML entities coming after (just in case) $line = str_replace('\\&','&', $line); + $line = str_replace('\_','_',$line); + $line = str_replace('\%','%',$line); + + $line = str_replace('---','—',$line); + $line = str_replace('--','–',$line); + // handling \url{....} // often used in howpublished for @misc $line = preg_replace('/\\\\url\{(.*)\}/U','\\1', $line);