View Single Post
Old 10-30-2009, 06:23 PM   #1 (permalink)
unitechy
The Wanderer
 
unitechy's Avatar
 
Join Date: Mar 2008
Location: navi mumbai
Posts: 10
Thanks: 4
unitechy is on a distinguished road
Default 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_contentstr_replace($wordAndMeaning[0], "<acronym title=\"" $wordAndMeaning[1] . "\">" $wordAndMeaning[0] . "</acronym>"$the_content);
            } 
__________________
How to crash your pc??
Send a message via AIM to unitechy Send a message via MSN to unitechy Send a message via Yahoo to unitechy Send a message via Skype™ to unitechy
unitechy is offline  
Reply With Quote