removeCtrlChars() public method

文字列から制御文字を取り除く
public removeCtrlChars ( $string )
Beispiel #1
0
function transformRSS($data)
{
    $view = new View();
    $blogHelper = new BlogHelper($view);
    return array('title' => $data['BlogPost']['name'], 'link' => Router::url('/' . $this->request->params['Site']['alias'] . '/' . $view->request->params['Content']['name'] . '/archives/' . $data['BlogPost']['no']), 'guid' => Router::url('/' . $this->request->params['Site']['alias'] . '/' . $view->request->params['Content']['name'] . '/archives/' . $data['BlogPost']['no']), 'category' => $data['BlogCategory']['title'], 'description' => $blogHelper->removeCtrlChars($data['BlogPost']['content']), 'pubDate' => $data['BlogPost']['posts_date']);
}