Append class="external" to external links.
Posted
by K3
on Stack Overflow
See other posts from Stack Overflow
or by K3
Published on 2010-04-08T13:48:49Z
Indexed on
2010/04/08
14:43 UTC
Read the original article
Hit count: 530
What is the php code to append class="external" to links that are posted and are not the domain.
For example my site is www.mysite.com and you post a link to www.mysite.com/news and a link to www.yoursite.com
How do I set it so only non "mysite.com" links have the class specified?
© Stack Overflow or respective owner