选择语言 :

 Core_Str::text2html

文本转换为HTML 将处理<>和换行符

null Core_Str::text2html( )
File: ./core/classes/str.class.php
public function text2html()
{
    return str_replace(array('<', '>', "\r\n", "\r", "\n"), array('&lt;', '&gt;', '<br />', '<br />', '<br />'), $this->data);
}