You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for creating a wonderful library! I ran into a bug where HtmlExctractors creates a message with excess characters when html is used within a prop. The following script returns more than the expected: Some good text. <a href="example.com">Learn more</a>.
constText=({ children })=><div>{children}</div>;constContainer=({ children, secondaryText })=>(<div>{children}{secondaryText}</div>);constParent=()=>{return(<ContainersecondaryText={<Texttranslated>
Some good text. <ahref="example.com">Learn more</a>.
</Text>}maxlength={25}/>);};
The text was updated successfully, but these errors were encountered:
Looks like the issue lies in parse5, since it returns a node that includes more child nodes for Text than expected. I'm guessing this sort of usage isn't expected, so if you have advice for mixing this sort of html/jsx extraction, I'd love to hear your thoughts!
The extractor is made for HTML not JSX. I'm also not really sure what you would expect.
If you only want Some good text extracted, why don't you do <Text translated>Some good text</Text> instead?
First, thanks for creating a wonderful library! I ran into a bug where HtmlExctractors creates a message with excess characters when html is used within a prop. The following script returns more than the expected:
Some good text. <a href="example.com">Learn more</a>.
The parsed file
The text was updated successfully, but these errors were encountered: