I'm looking to store CSS in a mySql database (LAMP setup). I'd like to do an input field with the following:
body{ background: url("http://google.com/image.jpg") no-repeat; color: orange; }
#someDiv {width: 50%;}
... you get the idea. How would I best sanitize this data to allow it in the database? Thanks for the help, I can't seem to find a good solution on SO yet.