GithubHelp home page GithubHelp logo

Comments (4)

bozana avatar bozana commented on July 22, 2024

I investigated a little bit and here is what I have found out:

It seems the library we use assumes that the citations are displayed in an HTML page. It returns the citation styles coated withing two

elements.
And the library escapes HTML characters, for example in title and abstract.

Also, our abstract contains HTML elements.

However the BibTex and RIS format are not displayed on the page as the other formats, but provided by us for download. We do remove the

elements that we get returned from the library, but our abstract have HTML elements too.

That means that, for example, a title would then look like this there:
Title & Test
or abstract would look like this:
<p>The antimicrobial, heavy metal resistance patterns and ... (>56.4 kb) encoding .... </p>.

Thus, I can see the following possibilities how to deal with it:

  1. Do not provide BibTex and RIS for download, but display them as other styles on the page, so that users can copy & paste them, if needed.
  2. Do nothing i.e. leave it as it is. In that case the users will have those HTML tags and escaping when they import the BibTex or RIS format into their citation software.
  3. I actually do not think this is a solution, but to mention it here however: to somehow remove HTML elements from our abstract (and title). The HTML escaping will however remain i.e. for example the sign '&' if used in text would be escaped (or we would need to revert it somehow too).

I think I prefer the solution #1.

from citationstylelanguage.

bozana avatar bozana commented on July 22, 2024

Hmm... Now I see that we save some parts of the title and abstract html encoded, for example:
<p>Abstract: One more test' &lt; <strong>EN &amp; sign </strong> bla bla... </p>
So the only solution is to somehow disable the encoding by the library we use... :-\

from citationstylelanguage.

bozana avatar bozana commented on July 22, 2024

Hmmm... I think we can use htmlspecialchars_decode for download citations BibTeX and RIS

from citationstylelanguage.

jonasraoni avatar jonasraoni commented on July 22, 2024

Fixes will be covered by #118

from citationstylelanguage.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.