Iam trying to isolate html tags, in particular link tags. I've been reading up on preg_match and regular expressions, however I am unsure of how to get a link pattern to be echoed to screen in the way I want it. For example, a typical link:
<a href="blah.com" class="myclass"><img src="image.jpg" alt="my image"></a>
How do I create a regular expression that will echo the entire link to screen as code and not as an actual link or linked image?
I appreciate feedback.
<a href="blah.com" class="myclass"><img src="image.jpg" alt="my image"></a>
How do I create a regular expression that will echo the entire link to screen as code and not as an actual link or linked image?
I appreciate feedback.