PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- public function nofollow($text){
- require_once('/simple_html_dom.php');
- $html = new simple_html_dom( $text);
- $http = '/^http:\/\//';
- $link = $html->find('a');
- foreach($link as $item){
- $item->class="red";
- $item->rel="nofollow";
- }
- }
- return $html;
- $html->clear();
- }