html-react-parser
html-react-parser copied to clipboard
📝 HTML to React parser.
It seems that the ```attributesToProps``` method is converting all keys to lowercase (see https://github.com/remarkablemark/html-react-parser/blob/master/lib/attributes-to-props.js#L37 ). Why is this happening? We would like to pass case-sensitive attributes to our dynamic html...
I am unable to parse the current html from some reason ```html lkjasdkjasdkljakldj ` ``` ## My current Code is ```js const validate =()=> { var h = html.replace(//g, "")....
## Expected Behavior The package at version 5.0.3 should compile without errors. ## Actual Behavior ``` Failed to compile. ./node_modules/html-react-parser/esm/index.mjs Can't reexport the named export 'Comment' from non EcmaScript module...
The following is not parsed when using `attributesToProps(domNode.attribs)`: ``` style="margin-left: 24px!important" ``` while this is: ``` style="margin-left: 24px" ``` Why is that a case?
## Expected Behavior Parsing the \r\n ## Actual Behavior it remove \r and keep \n ## Steps to Reproduce const text = "toto \r\n toto" parse(text) output "toto toto" ##...
## Expected Behavior `parse('Hello, World!')` should return a `html` tag, with a `p` child tag ## Actual Behavior It returns empty react element. `console.log` gives the following: ```javascript { ......
When I am proving some content between without space like `` the parser is breaking & If I am providing < testing content > then it is working fine. I...
## Expected Behavior Examples in README should work correctly in terms of types / types should be correct.. ## Actual Behavior The [README](https://github.com/remarkablemark/html-react-parser/blob/master/README.md#replace-element-and-children) suggests that you can directly pass `domNode.children`...
## Expected Behavior If we we have a list with a sublist in it it should render as it is, 1. List item 1 a. sub item 1 ## Actual...
## Expected Behavior A sequence of multiple self closing tags can be parsed. Example: ``` ``` ## Actual Behavior ``` ``` seem to be parsed as: ``` ``` so tag2...