[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#218310: bibtex2html: doesn't properly quote '&'

On Thu, Oct 30, 2003 at 02:48:03PM +0100, Arnaud Giersch wrote:
> Package: bibtex2html
> Version: 1.65-1
> Severity: normal
> Tags: patch
> Hello,
> I have a BibTeX entry with an url field like this:
>   url = {http://www.springerlink.com/openurl.asp?genre=article&issn=0302-9743&volume=2840&spage=657},
> which bibtex2html translates into HTML by:
>   URL = {<a href="http://www.springerlink.com/openurl.asp?genre=article&amp;issn=0302-9743&amp;volume=2536&amp;spage=82";>http://www.springerlink.com/openurl.asp?genre=article&issn=0302-9743&volume=2536&spage=82</a>},
> The &'s are correctly quoted inside the href="..." but not between <a>
> and </a>. It should produce something like:
>   URL = {<a href="http://www.springerlink.com/openurl.asp?genre=article&amp;issn=0302-9743&amp;volume=2536&amp;spage=82";>http://www.springerlink.com/openurl.asp?genre=article&amp;issn=0302-9743&amp;volume=2536&amp;spage=82</a>},

Maybe I am confused, but I think that the correct behaviour would be
the exact inverse of what bibtex2html does currently:

- the & inside the anchor <a href=...> should *not* be escaped 
- the & in the text to be displayed (<a>...</a>) *should be* escaped.

That is, the correct rendering should be rather :

URL = {<a

The most confusing thing is that, in both the current version of 
bibtex2html as in the correction that I proposed above, it works
fine in galeon for me.


Reply to: