I get SVG or dynamic HTML from a headless CMS. But I can't render it in Qwik.
In Next.js we would use the dangerouslySetInnerHTML for this purpose.
What is our option in Qwik? I can't find anything in their documentation.
I get SVG or dynamic HTML from a headless CMS. But I can't render it in Qwik.
In Next.js we would use the dangerouslySetInnerHTML for this purpose.
What is our option in Qwik? I can't find anything in their documentation.
On
import type { QwikIntrinsicElements } from '@builder.io/qwik'
export function ArrowForwardIcon(props: QwikIntrinsicElements['svg'], key: string) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" {...props} key={key}><path fill="currentColor" d="m12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8l-8-8z"></path></svg>
)
}
export default ArrowForwardIcon