inukshuk/citeproc-ruby — Issue #5: HTML entities and hyperlinks in HTML output
Author: tnhh
Created: 2012-01-04 10:22:37+00:00
State: open

I'm trying to use citeproc-ruby to generate HTML from BibTeX. It doesn't seem to convert much to HTML, though. Given the file test.bib

```
@Article{dashes,
author = {Joe Bloggs},
title = {I like --- em --- dashes},
journal = {Journal of 'apostrophes'},
year = 2011,
url = {http://www.example.com/}
}
```

the code

```
#!/usr/bin/env ruby

require 'citeproc'
require 'bibtex'

bib = BibTeX.open('test.bib', :filter => :latex)

puts "

"
puts CiteProc.process bib.to_citeproc, :style => 'apa', :format => 'html'
puts "

"
```

gives me
```
Bloggs, J., 2011. I like â€” em â€” dashes. Journal of â€™apostrophesâ€™, 3â€“5. Available at: http://www.example.com/.
```

whereas I would have expected to see something more like
```
Bloggs, J. (2011). I like — em — dashes. Journal of ‘ apostrophes ’, 3—5. Available at: http://www.example.com/.
```

Is there a filter that I need to pass?