Changeset 916
- Timestamp:
- 06/05/10 00:50:07 (20 months ago)
- Files:
-
- 1 modified
-
trunk/engine/modules/text/Text.class.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/engine/modules/text/Text.class.php
r891 r916 131 131 $sResult=$this->VideoParser($sResult); 132 132 $sResult=$this->CodeSourceParser($sResult); 133 if (Config::Get('view.noindex')) {134 // требует доработки, т.к. обрабатывает ВСЕ ссылки, включая в <code></code>135 $sResult=$this->MakeUrlNoIndex($sResult);136 }137 133 return $sResult; 138 134 } … … 181 177 return $sText; 182 178 } 183 /**184 * Делает ссылки не видимыми для поисковиков185 *186 * @param unknown_type $sText187 * @return unknown188 */189 public function MakeUrlNoIndex($sText) {190 return preg_replace("/(<a .*>.*<\/a>)/Ui","<noindex>$1</noindex>",$sText);191 }192 193 179 /** 194 180 * Производить резрезание текста по тегу <cut>.
