* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
$check = str_replace('/', '', $check);
if (!in_array($check, $GLOBALS['html_tags'])) {
// Invalid tag found
- return '';
+ $html = '';
+ break;
} // END - if
$test = substr($test, strpos($test, '>') + 1);
} // END - while
} // END - foreach
// Replace new-lines agains <br />-s and finally compile possible own HTML tags out...
- return preCompileCode(str_replace(chr(10), "<br />\n", $text));
+ return preCompileCode(str_replace(PHP_EOL, '<br />' . PHP_EOL, $text));
}
// [EOF]