Changeset 202737
- Timestamp:
- 02/07/2010 01:27:02 AM (16 years ago)
- File:
-
- 1 edited
-
wp-markkeyword/trunk/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-markkeyword/trunk/index.php
r186846 r202737 4 4 Plugin URI: http://conis.cn/1365/ 5 5 Description: This plugin can high light keyword after someone searchecd it, which supports the search engines like google, baidu, ask, yahoo&bing.wp-markKeyword可以高亮显示来自搜索引擎的关键字,支持多个搜索引擎,更多请访问我的博客 6 Version: 0. 66 Version: 0.7 7 7 Author: Conis 8 8 Author URI: http://conis.cn/ … … 39 39 foreach($arrKeyword as $item) 40 40 { 41 $content = str_ireplace( $item, '<span class="wmkHighLight">'.$item.'</span>', $content); 41 $content = str_ireplace('/(>.*)('.$item.')(.*<)/U', '<span class="wmkHighLight">'.$item.'</span>', $content); 42 //$content = str_ireplace( $item, '<span class="wmkHighLight">'.$item.'</span>', $content); 42 43 } 43 44 }
Note: See TracChangeset
for help on using the changeset viewer.