Giter VIP home page Giter VIP logo

Comments (3)

Vitaliy-1 avatar Vitaliy-1 commented on September 27, 2024

Hi @MathiasCimelli,

Do you mean & encoding sequence for ampersand or something else?

from jatsparserplugin.

MathiasCimelli avatar MathiasCimelli commented on September 27, 2024

Hi,

Yes, when i try to display in full text a sign "&" he disapear and leave an error in the following text.
Example :
I have a title

named "Methods & Material"
And the result in the full text is my title as desapeared and the close tag of the

tag is not more writed, so the following text take the form of the title.

In the xml the tag & is present but with the parser that leave a blank.

Thank you,
CimelliM

from jatsparserplugin.

rinorazzi avatar rinorazzi commented on September 27, 2024

Hi @Vitaliy-1

I have the same issue as @MathiasCimelli.
It occurs when the title tag of a section contains & which is the HEX encoded HTML entity for "&" (ampersand).

Here is an example.

<sec id="sec1-2">
<title>BACKGROUND &#x0026; AIMS</title>
<p> ....</p>

In this example the parsing of the title breaks and the HTML generated by JatsParser contains an open <h2> tag
without the corresponding </h2> closure.

This happens with version 2.1.9.3 of JatsParser.

The same issue also occurs in an older versions of JatsParser (compatible with OJS 3.1,2) but the effect is different:
in that case the <h2> gets closed but the portion of the title after the & is cut. So, with the above XML example the generated HTML would be
<h2>BACKGROUND</title>

from jatsparserplugin.

Related Issues (20)

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.