Giter Site home page Giter Site logo

Comments (11)

Bouncey avatar Bouncey commented on July 18, 2024

The message need to be unescaped going into the output console.

from learn.

rishiip avatar rishiip commented on July 18, 2024

@Bouncey I would like to work on it, please let me know if it's not been assigned to anyone.

I guess we can use this article for fix it: https://paulschreiber.com/blog/2008/09/20/javascript-how-to-unescape-html-entities/

from learn.

Bouncey avatar Bouncey commented on July 18, 2024

It is yours @rishiip 👍

from learn.

alvinkl avatar alvinkl commented on July 18, 2024

@rishiip you can use this function

const unescapeString = str => {
  const el = document.createElement('div');
  return str.replace(/\&[#0-9a-z]+;/gi, enc => {
    el.innerHTML = enc;
    return el.innerText;
  });
};

export default unescapeString;

Good luck! 👍

from learn.

rishiip avatar rishiip commented on July 18, 2024

@alvinkl Sure 🎉

from learn.

Bouncey avatar Bouncey commented on July 18, 2024

@alvinkl @rishiip, we do not need to create any elements for this. It is just string manipulation

from learn.

Bouncey avatar Bouncey commented on July 18, 2024

Oh, now I get it. I'll be quiet for a moment

from learn.

rishiip avatar rishiip commented on July 18, 2024

Hi @Bouncey @alvinkl As I am new to React. I am figuring out how method works in react app. I already figured out the file in which I needs to do modification. I'll let you know, if I am not able to fix it. So that you can assign it to someone else. 😊

from learn.

tchaffee avatar tchaffee commented on July 18, 2024

@rishiip How is this going? I'm willing to take this over if you can't get to it.

from learn.

rishiip avatar rishiip commented on July 18, 2024

@tchaffee That would be great! Apologies.

I'm learning node and react, I'll be back soon 😊

from learn.

tchaffee avatar tchaffee commented on July 18, 2024

@Bouncey This was fixed with my PR #111 and can be closed.

from learn.

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.