Content of Variable ist html code

From: Date: Sun, 24 Aug 2003 15:55:06 +0000
Subject: Content of Variable ist html code
Groups: php.general 
Request: Send a blank email to php-general+get-160591@lists.php.net to get a copy of this message
Hi php-general, I'm thinking of how I could store the content of a String-variable a) in a Variable to be passed to other functions b) in a Database (MySQL) too . The content is html-code (with tags and style code (css)). The point is that I'm making myself a kind of CMS, and I want to edit a page, enter html code, store it in the database and then display it as content on a page. So, in the edit menu, I have to be able to see the html tags, but on the target page, the html entities have to be translated by the browser... and all that has to be storable in MySQL... How do I do that the best...?!? addslahes, stripslahses, htmlentities, html_entity_decode are the only functions I have found, which seem to be really useful. Are there others I could need, or do you think I'm fine with that? Thanx for answering SvT -- Who is the ennemy?

« previous php.general (#160591) next »