RBA Cash Rate: 3.60% · 1AUD = 0.66 USD · Inflation: 2.1%  
Leading Digital Marketing Experts | 1300 235 433 | Aggregation Enquires Welcome | Book Appointment
Example Interest Rates: Home Loan Variable: 4.99% (4.99%*) • Home Loan Fixed: 4.79% (5.47%*) • Fixed: 4.79% (5.47%*) • Variable: 4.99% (4.99%*) • Investment IO: 4.99% (5.81%*) • Investment PI: 4.89% (5.26%*)

Force Links to Open in a New Window

Here's a very simple PHP function that will parse text and create links that will open in a new window.

1
<?php 
2
function beliefmedia_link_window($text) {
3
  $text = preg_replace('/<a (. ?)>/i', "<a target='_blank' rel="external noopener noreferrer">", $text);
4
 return $text;
5
}
6
 
7
$content = '<a href="http://www.beliefmedia.com/">This link</a> will open in a new window';
8
echo beliefmedia_link_window($content);

■ ■ ■

 
Download our complimentary 650-page guide on marketing for mortgage brokers. We'll show you exactly how we generate billions in volume for our clients.
Finance Guide, Cropped Top and Bottom
Timezone: E. AUSTRALIA STANDARD TIME · [ CHANGE ]

Like this article?

Share on Facebook
Share on Twitter
Share on Linkdin
Share on Pinterest

Leave a comment