Home     Articles & Projects     Products & Web Services

how to remove the following

I am developing a site which is quite CSS rich, and in the admin area, the user needs to be able to view the site view as they are not HTML coders.

So in the textarea I placed

<link rel="stylesheet" href="http://www.example.com/templates/css/style.css" type="text/css">

However I don't want it to save that in the mysql.
So how do I tell the server NOT to include it.
I tried preg_replace but that did not work

Hi Russell, That won't work

Hi Russell,

That won't work i'm afraid as you would still be using the default textarea component, which cannot display rich text.

Search for "html rich text editor" - or words along those lines and you should find something you can use that will let you create a WYSIWYG text area in your admin page!

I am using CLEditor which is

I am using CLEditor which is a WYSIWYG jQuery editor.
but when I post the data to the proccessing page it send the style CSS link