react-html-parser
react-html-parser copied to clipboard
Request: Transform option to add a classname or id to each parsed
I have seen instances where it was useful to have, and using the transformer feels like a much cleaner way than manually transforming the input string with string manipulation.
I could use this functionality as well
Still looking for a solution to this.
Shouldn't it be simple as
- Read existing classname, using the parser
- Append user-defined options.append.className
- done
I'm currently having problems with the parser itself, returning 'classname' instead of 'className' like the original string passed into it.
@earthnoob this is resolved here https://github.com/wrakky/react-html-parser/issues/29#issuecomment-333414171