Giter Site home page Giter Site logo

Comments (12)

remarkablemark avatar remarkablemark commented on May 23, 2024 1

@saraOrkide unfortunately there is nothing I can do on my side since this is a React bug. See reproduced demo

My recommendation is to stick with dangerouslySetInnerHTML

from html-react-parser.

remarkablemark avatar remarkablemark commented on May 23, 2024

@saraOrkide can you provide a reproducible example using CodeSandbox JavaScript or CodeSandbox TypeScript?

from html-react-parser.

saraOrkide avatar saraOrkide commented on May 23, 2024

@saraOrkide can you provide a reproducible example using CodeSandbox JavaScript or CodeSandbox TypeScript?

https://codesandbox.io/s/940pov1l4w?file=/src/index.js

from html-react-parser.

remarkablemark avatar remarkablemark commented on May 23, 2024

@saraOrkide I don't see your changes. Can you fork and save a new CodeSandbox?

from html-react-parser.

saraOrkide avatar saraOrkide commented on May 23, 2024

@saraOrkide I don't see your changes. Can you fork and save a new CodeSandbox?

Oh sorry, forgot to save
see now

from html-react-parser.

remarkablemark avatar remarkablemark commented on May 23, 2024

@saraOrkide can you share the new link that was created after save?

from html-react-parser.

saraOrkide avatar saraOrkide commented on May 23, 2024

@saraOrkide can you share the new link that was created after save?

https://codesandbox.io/s/laughing-dhawan-sq5p28?file=/src/index.js

from html-react-parser.

remarkablemark avatar remarkablemark commented on May 23, 2024

I reproduced your issue and it's caused by the open prop being converted to a boolean value:

Screen Shot 2023-10-13 at 1 39 44 PM

I think the fix will need to be done in https://github.com/remarkablemark/react-dom-core/tree/master/packages/react-property

Actually this is a React bug, I can reproduce in https://codesandbox.io/s/html-react-parser-1080-23nhj2

from html-react-parser.

saraOrkide avatar saraOrkide commented on May 23, 2024

Ok, I know, why does it convert it to boolean?
How can I solve the problem?
with react-property?!!
Can you please tell me with the sample code that I sent

from html-react-parser.

saraOrkide avatar saraOrkide commented on May 23, 2024

My recommendation is to stick with dangerouslySetInnerHTML

My problem is that I want to replace a tag, so I wanted to use html-react-parser

from html-react-parser.

remarkablemark avatar remarkablemark commented on May 23, 2024

You can use dangerouslySetInnerHTML with html-react-parser

from html-react-parser.

saraOrkide avatar saraOrkide commented on May 23, 2024

You can use dangerouslySetInnerHTML with html-react-parser

Can you tell me how?

from html-react-parser.

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.