/ Published in: PHP
Affects tags for links starting with $link Example: LinkReplacer ($text, 'http://www.snipplr.com') affects to Snipplr and Snipplr Blog
Expand |
Embed | Plain Text
function LinkReplacer($text, $link, $new_text) { $regexp = '/<a [^<]*href=["|\']?'.$quoted_link.'["|\']?[^>]*>.*<\\/a>/ui'; return $text; }
You need to login to post a comment.
