Quote:
Originally Posted by Oblivion Knight
If you use the "lite" version; the php, code and html tags shouldn't be affected.
|
hmm have u tested this coz for me it did change the way it rendered the page
code and php tags are unaffected but html tag goes haywire
^^ sorry
apparently this works with it great
PHP Code:
$thisscriptis = array(
'editpost',
'register',
'newreply',
'newthread',
'sendmessage'
);
if (!in_array(THIS_SCRIPT, $thisscriptis))
{
$patterns = array('/\>\s+\</', '/^\s*/m');
$replace = array('> <', '');
$vartext = preg_replace($patterns, $replace, $vartext);
}
else
{
$vartext = preg_replace('/\>\s+\</', '> <', $vartext);
}