What is the php code to append class=”external” to links that are posted and are not the domain.
For example my site is http://www.mysite.com and you post a link to http://www.mysite.com/news and a link to http://www.yoursite.com
How do I set it so only non “mysite.com” links have the class specified?
Another approach would be using CSS3 selectors but they are not supported by Internet Explorer 6 (see: http://www.webdevout.net/browser-support-css#css3selectors):
You would not need to change your links programmatically!
… would result in a link with internal link style.
… would result in a link with external link style.