本文整理汇总了PHP中FSS_Helper::filterText方法的典型用法代码示例。如果您正苦于以下问题:PHP FSS_Helper::filterText方法的具体用法?PHP FSS_Helper::filterText怎么用?PHP FSS_Helper::filterText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FSS_Helper
的用法示例。
在下文中一共展示了FSS_Helper::filterText方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: GetMessage
function GetMessage($i)
{
$this->plainmsg = "";
$this->htmlmsg = "";
$structure = imap_fetchstructure($this->conn, $i);
if (empty($structure->parts)) {
$this->getPart($this->conn, $i, $structure, 0);
} else {
foreach ($structure->parts as $partno => $part) {
$this->getPart($this->conn, $i, $part, $partno + 1);
}
}
if (empty($this->plainmsg)) {
$this->plainmsg = "EMPTY";
}
if (empty($this->htmlmsg)) {
$this->htmlmsg = "EMPTY";
}
if (strlen($this->plainmsg) < 10 && strlen($this->htmlmsg) > 20) {
require_once JPATH_SITE . DS . 'components' . DS . 'com_fss' . DS . 'helper' . DS . 'third' . DS . 'html2text.php';
$h2t = new html2text($this->htmlmsg);
$this->plainmsg = $h2t->getText();
}
if (isset($this->params['import_html']) && $this->params['import_html'] && FSS_Settings::get('allow_raw_html_messages') && strlen($this->htmlmsg) > 10) {
$this->plainmsg = "{RAWHTML}" . FSS_Helper::filterText($this->htmlmsg);
}
}