Comments (11)
The message need to be unescaped going into the output console.
from learn.
@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.
It is yours @rishiip 👍
from learn.
@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.
@alvinkl Sure 🎉
from learn.
@alvinkl @rishiip, we do not need to create any elements for this. It is just string manipulation
from learn.
Oh, now I get it. I'll be quiet for a moment
from learn.
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.
@rishiip How is this going? I'm willing to take this over if you can't get to it.
from learn.
@tchaffee That would be great! Apologies.
I'm learning node and react, I'll be back soon 😊
from learn.
@Bouncey This was fixed with my PR #111 and can be closed.
from learn.
Related Issues (20)
- Accept value 0 without measure unit HOT 1
- Random quotes for 404 page flickers HOT 10
- Flash message hard to read in night mode. HOT 1
- Improve the "ask for help" forum post autopopulation functionality HOT 1
- Error in comment in a JS regex page HOT 3
- "Map is not a function" in a Rosetta Code problem HOT 4
- "Responsive Web Design Principles: Create a Media Query" test is not forgiving. HOT 1
- Support for curriculum challenge translations HOT 1
- Dasherize in learn HOT 1
- News page link not in navigation bar on learn.freecodecamp.org HOT 1
- curriculum - insert category on HTML5
- Cannot see the curriculum
- Profile picture overflow
- All challenges which test if something is console.logged are not working HOT 2
- [CI Tests] Add test for challenges that use `console.log`
- [CI Tests] Define a test suit that can handle unit -> integration -> e-2-e tests
- Update package.json so @freecodecamp/curriculum in recent version 3.1.2 or later
- Better install instruction for Learn
- Learn platform doesn't work on Edge Browser Windows 10
- Streak being shown wrong
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn.