Forum Moderators: coopster
i'm calling up includes into my main page. as follows:
---------------------------------
function section2(){
include 'article/article2.php';
}
function section3(){
include 'article/article3.php';
}
function section4(){
include 'article/article4.php';
}
---------------------------------
what can i add to each, to stripslashes from each article*.php?
thank you in advance.
ob_start();
include ($your_file);
$buffer=ob_get_clean();
echo stripslashes($buffer);
ob_end_flush();
basically, whatever output is made by the include is stored in the buffer
the buffer is then stored in $buffer, which you echo with stripslashes().
finally, flush the buffer, just to be sure