Coder Social home page Coder Social logo

Comments (6)

rafibomb avatar rafibomb commented on July 30, 2024 2

It has to do with the Cheerio library used. @kball has a PR pending that should resolve it #37

Still needs a few tweeks to get it across the line if you have suggestions.

from inky.

darklow avatar darklow commented on July 30, 2024 1

@redayoub I didn't. Still waiting for some suggestions from devs.
Right now I just added to context already final values and I am not calling anything that requires arguments.

from inky.

asmerkin avatar asmerkin commented on July 30, 2024 1

Possible idea:

Update gulpfile.babel.js

// Compile layouts, pages, and partials into flat HTML files
// Then parse using Inky templates
function pages() {
  return gulp.src('src/pages/**/*.html')
    .pipe(panini({
      root: 'src/pages',
      layouts: 'src/layouts',
      partials: 'src/partials',
      helpers: 'src/helpers'
    }))
    .pipe(inky({
      cheerio: {
        decodeEntities: false
      }
    }))
    .pipe(gulp.dest('dist'));
}

The issue is that now this converts the affected characters twice. There's something in the middle that it's not working.

https://github.com/fb55/htmlparser2/wiki/Parser-options#option-decodeentities

from inky.

redayoub avatar redayoub commented on July 30, 2024

I'm having the same problem, did you found a solution for that ?

from inky.

elendirx avatar elendirx commented on July 30, 2024

+1

from inky.

darklow avatar darklow commented on July 30, 2024

I just tested recent inky version and can confirm this bug was fixed (PR #57).
Now decodeEntities is by default false.
Thanks.

from inky.

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.