diff --git a/bibtexbrowser.php b/bibtexbrowser.php
index 63560c9..aeb606c 100755
--- a/bibtexbrowser.php
+++ b/bibtexbrowser.php
@@ -759,23 +759,40 @@ function latex2html($line) {
// often used in howpublished for @misc
$line = preg_replace('/\\\\url\{(.*)\}/U','\\1', $line);
- $chars="abcdefghijklmnopqrstuvwxyz";
- for($i=0;$i