We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to generate RSS feed using reactElementToJSXString from a React element.
reactElementToJSXString
When I try to render the content of the blog post, it should look something like this:
<codearea> <![CDATA[ <div> <p> my para </p> </div> ]]> </description>
However, it seems like all the HTML is transformed into a string:
<description> {`<![CDATA[<div> <p> my para </p> </div> ]]>`} </description>
My React code:
import type { JSONFeed } from "./feed-type"; export const RSS = (feed: JSONFeed) => ( <rss version="2.0"> <channel> {feed.items?.map((item) => { return ( <item> <description>{`<![CDATA[${item.content_text}]]>`}</description> </item> ); })} </channel> </rss> );
Is it possible to have it rendered without being turned into a string?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to generate RSS feed using
reactElementToJSXString
from a React element.When I try to render the content of the blog post, it should look something like this:
However, it seems like all the HTML is transformed into a string:
My React code:
Is it possible to have it rendered without being turned into a string?
The text was updated successfully, but these errors were encountered: