Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

html-react-parser

HTML to React parser.
Collective - Host: opensource - https://opencollective.com/html-react-parser - Website: https://b.remarkabl.org/html-react-parser - Code: https://github.com/remarkablemark/html-react-parser

Use the React property config when converting attributes to props

- Update `attributeToProps` to use the React property config.
- Refactor the helper and keep thi...

github.com/remarkablemark/html-react-parser - b2ba8518cd06959b6a0fd9300856bcf2cd096daf authored over 8 years ago by Mark <[email protected]>
Create helper that makes DOM attributes compatible with React props

Currently, the helper only makes the CSS style attribute compatible
by converting the string to ...

github.com/remarkablemark/html-react-parser - 24cce18b60b621d2edf839a1578659597bce2594 authored over 8 years ago by Mark <[email protected]>
Create utility helper for camel casing text with hyphens

This helper will be used when converting CSS styles to JS objects.
Then the `style` object will ...

github.com/remarkablemark/html-react-parser - a66bd438086607e141616769368eae3c799d70a5 authored over 8 years ago by Mark <[email protected]>
Create tests for the attributes to props helper

Check that the style attribute works as expected.

github.com/remarkablemark/html-react-parser - 8db5a6b86b7301195aedc856ca149685c8783e83 authored over 8 years ago by Mark <[email protected]>
Create config that maps out DOM attributes to React props

The config will be used when converting DOM node attributes
to React props.

Map out the followi...

github.com/remarkablemark/html-react-parser - e47d05527adc1a678bcd7c05d41fc0ef71b1924d authored over 8 years ago by Mark <[email protected]>
Ensure that custom attributes (`data` and `aria`) are kept as props

Update `attributesToProps` helper to set the custom attributes
if found. Use React's `HTMLDOMPro...

github.com/remarkablemark/html-react-parser - 5dae6e474ac9f0b533a9ae5c06bc5c59c7c7d6fc authored over 8 years ago by Mark <[email protected]>
Create utility helper that inverts a JavaScript object

`invertObject` is a functional helper that swaps the key with the
value for a JavaScript object....

github.com/remarkablemark/html-react-parser - 1406e3ce9b4d491cc4bd826e9ab55c0be46a379a authored over 8 years ago by Mark <[email protected]>
Prevent <script> from being escaped by React

Use `dangerouslySetInnerHTML` to prevent the text in the script
tag from being escaped by React....

github.com/remarkablemark/html-react-parser - 97ce98a6356c9cdab88dc08c62d799e28de7109d authored over 8 years ago by Mark <[email protected]>
Handle conversion of <textarea> node to React properly

Setting textarea value in children is an antipattern in React.
https://facebook.github.io/react/...

github.com/remarkablemark/html-react-parser - 115466bacf343c9cae66efe9cc376e4992d2dd21 authored over 8 years ago by Mark <[email protected]>
Specify "key" prop when creating an array of children

Fix the following in DOM to React parser:
> Warning: Each child in an array should have a unique...

github.com/remarkablemark/html-react-parser - 2e27797c3067bafd5226d2d2e1a9eaa6c138bc48 authored over 8 years ago by Mark <[email protected]>
Create test for DOM to React parser

Check that converting a single DOM node to React works as expected.

github.com/remarkablemark/html-react-parser - a18f35349ee9da04a8749fca713ede25763186ca authored over 8 years ago by Mark <[email protected]>
Create DOM to React parser

The DOM to React parser converts the DOM nodes object returned
by htmlparser2's parseDOM method ...

github.com/remarkablemark/html-react-parser - 9d7e259a6464cfe849846a2ffd062c2b6f3a66e4 authored over 8 years ago by Mark <[email protected]>
Create test for HTML to DOM parser

- Verify that recreated helper works exactly like htmlparser2's
`parseDOM`
- Create mock data ...

github.com/remarkablemark/html-react-parser - 457f25844ff5f07904abb002bbf144fd144f97ac authored over 8 years ago by Mark <[email protected]>
Create HTML to DOM parser

This helper converts HTML string to DOM nodes.
It is a copy of `require('htmlparser2').parseDOM`...

github.com/remarkablemark/html-react-parser - e6adbf50ce66e5ec21e37f5c98eea7085f572b82 authored over 8 years ago by Mark <[email protected]>
Add .gitignore

Ignore the following:
- node modules
- log files
- swap files
- trivial Mac files

github.com/remarkablemark/html-react-parser - b88370c32e2230e8446a2ddf70ddebdd68c28bf9 authored over 8 years ago by Mark <[email protected]>