10-30-2009, 06:23 PM
|
#1 (permalink)
|
|
The Wanderer
Join Date: Mar 2008
Location: navi mumbai
Posts: 10
Thanks: 4
|
ignore hyperlinked text
I have been working on some wp-plugin to practice php.
I have made a dictionary... which reads posts from wordpress post and the plugin converts difficult words stored in the a text file.
Now I don't want the plugin to read hyperlinked text. how do I achieve that? here is my code.
PHP Code:
if(stristr($the_content,$wordAndMeaning[0]) != false)
{
$the_content= str_replace($wordAndMeaning[0], "<acronym title=\"" . $wordAndMeaning[1] . "\">" . $wordAndMeaning[0] . "</acronym>", $the_content);
}
|
|
|