So I am trying to load in a piece of code I stored in my database, as mentioned in my previous post.
My previous post about this problem: TailwindCSS Colors not working when taking text (Code) from database
The problem is that Tailwinds JIT only adds the styles it sees in my blade file, but my variable “$code” isn’t recognized by Tailwind even though the variable code (in this case) contains: "<div class="bg-red-500 text-green-200 text-lg border">Code should be here</div>"
I would like to have Tailwind classes also work for whatever code the $code variable contains.
A safelist wouldnt work, because I dont know what Tailwind classes to expect, and I cant safe list every single class because that would beat the point of Tailwind.
This project uses Laravel, TailwindCSS and raw Javascript.
If something is unclear just post a comment and I can try clarifying.