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

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

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

@ -543,6 +543,8 @@
if($output->data) {
foreach($output->data as $key => $val) {
$output->data[$key]->content = preg_replace('/"([^"]*)":(http|ftp|https|mms)([^ ]+)/is','<a href="$2$3" onclick="window.open(this.href);return false;">$1</a>$4', $val->content);
$output->data[$key]->content = str_replace('...', '…', $output->data[$key]->content);
$output->data[$key]->content = str_replace('--', '—', $output->data[$key]->content);
}
}