Plugin Directory

Changeset 202737


Ignore:
Timestamp:
02/07/2010 01:27:02 AM (16 years ago)
Author:
conis
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-markkeyword/trunk/index.php

    r186846 r202737  
    44Plugin URI: http://conis.cn/1365/
    55Description: 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.6
     6Version: 0.7
    77Author: Conis
    88Author URI: http://conis.cn/
     
    3939        foreach($arrKeyword as $item)
    4040        {
    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);
    4243        }
    4344    }
Note: See TracChangeset for help on using the changeset viewer.