How do you add a new line within a Disclosure panel? #1207
Answered
by
normanwongcl
normanwongcl
asked this question in
Help
-
I found that HTML tags are not working within a disclosure panel. How would I go about adding a new line for any content in a disclosure panel. What the current user interface look likeHTML Tags are gray out and not validCode |
Beta Was this translation helpful? Give feedback.
Answered by
normanwongcl
Mar 8, 2022
Replies: 1 comment
-
Oh never mind, I solve the issue. I have forgotten that I can use dangerouslySetInnerHTML to inject HTML code. <Disclosure.Panel className="text-gray-600 text-sm mt-4 clear-both">
<p dangerouslySetInnerHTML={{ __html: formattedDescription }}></p>
</Disclosure.Panel> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
normanwongcl
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh never mind, I solve the issue.
I have forgotten that I can use dangerouslySetInnerHTML to inject HTML code.