Hello I would like to know how to delete links and may not appear click able on a string using preg_replace, I have a issue with regular expressions? Also how to delete images 'being click able or not' ? Thank you
delete all links+anchors $s='some html ....... '; $s = preg_replace('~<a [^>]+>[^<]+</a>~isU', '', $s); only a tags: $s='some html ....... '; $s = preg_replace('~<a [^>]+>([^<]+)</a>~isU', '\\1', $s);