use WikiFormat class
This commit is contained in:
parent
ada5c49b36
commit
69502b9a80
|
@ -558,7 +558,8 @@ class DataController extends Zend_Controller_Action
|
||||||
$uuid=$row->uuid;
|
$uuid=$row->uuid;
|
||||||
$this->view->metadata=$row;
|
$this->view->metadata=$row;
|
||||||
//提前对表格进行预处理
|
//提前对表格进行预处理
|
||||||
$this->view->metadata->description=$this->parseTable($this->view->escape($row->description));
|
$wiki=new WikiFormat();
|
||||||
|
$this->view->metadata->description=$wiki->parseTable($this->view->escape($row->description));
|
||||||
//处理外部链接
|
//处理外部链接
|
||||||
$this->view->metadata->description=preg_replace('/\[\s*(http:\/\/.+?)\s+(.*?)\]/m','<a href="$1">$2</a>',$this->view->metadata->description);
|
$this->view->metadata->description=preg_replace('/\[\s*(http:\/\/.+?)\s+(.*?)\]/m','<a href="$1">$2</a>',$this->view->metadata->description);
|
||||||
if (is_numeric($row->projection))
|
if (is_numeric($row->projection))
|
||||||
|
|
Loading…
Reference in New Issue