플래닛. 일부 미투문법 적용

* ... -> …
  * -- -> —

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4917 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-11-19 16:38:45 +00:00
parent 1644d6b2b0
commit 9e8aa916b2
2 changed files with 4 additions and 0 deletions

View file

@ -124,6 +124,8 @@
function insertContent($obj,$manual_inserted=false){
$obj->content = str_replace(array('<','>'),array('&lt;','&gt;'),$obj->content);
$obj->content = str_replace('...', '…', $obj->content);
$obj->content = str_replace('--', '—', $obj->content);
$obj->content = preg_replace('/"([^"]*)":(http|ftp|https|mms)([^ ]+)/is','<a href="$2$3" onclick="window.open(this.href);return false;">$1</a>$4', $obj->content);
$oDocumentController = &getController('document');
$output = $oDocumentController->insertDocument($obj,$manual_inserted);