Use html string in Head #2360
andriiradkevych
started this conversation in
General
Replies: 1 comment 5 replies
-
Looks like the API for writing to the Either way in your case I would consider parsing using Deno-dom and then writing pre-defined tags, rather than spitting out html from Yoast (don't you need to rewrite the root url, anyway?) You might be able to write using dangerouslySetInnerHtml, but I'm not sure quite what that would look like. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have
Seo
component in which I need to parseyoast_head
html string . Example ofyoast_head
is:How can I transform it to jsx , or maybe there is some method in api , which I can use ?
I see that there exist plugins https://fresh.deno.dev/docs/concepts/plugins#creating-a-plugin , by which I can change body , but it isn't clear how to change
head
from thereBeta Was this translation helpful? Give feedback.
All reactions