how to get $_POST['text'] from editor without JJREQUEST_ALLOWRAW and still be able to split it up in 2 strings, before and after the hr
Code: Select all
<hr id="system-readmore" />
Code: Select all
$content= JRequest::getVar('content','','post','string', JREQUEST_ALLOWRAW );
$length = strlen($content);
$pos = strpos($content, '<hr id="system-readmore" />');
if($pos){
$pos2 = $pos + 27;
$introtext = addslashes(substr($content, 0, $pos));
$fulltext = addslashes(substr($content, $pos2, $length));
}else{
$introtext = $content;
$fulltext = '';
}
Anyone ?