php - Storing CSS in Database -
I am looking to store CSS in my SQL database (LAMP setup). I want to input field with the following:
body {background: url ("http://google.com/image.jpg") No-repeat; Orange color; } #someDiv {width: 50%;} ... you get this idea how can I secure this data best to allow it in the database? Thanks for the help, I can not seem to find a good solution yet on
& Style style = "text / css" & gt; @import '/yourcssgenerator.php; & Lt; / Style & gt; yourcssgenerator.php You can serve CSS with draggable components like it, be it a database or scrap it from stackoverflow.com. Keeping CSS in your own resources does not require you to worry about injection of malicious things.
Anyone near stylesheets There is no CSS extension. You can also create your CSS templing layer in this way, and make your own version of CSS to individual users, co-branded clients, etc.
Check for the implementation details.
Comments
Post a Comment