aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArno Richter <oelna@oelna.de>2017-12-20 00:49:37 +0100
committerArno Richter <oelna@oelna.de>2017-12-20 00:49:37 +0100
commitbe1caa07cd615450599ba8c3c8cd5f0647d1f7a8 (patch)
tree5286c4cacd336415e65535424ad98077cc1dd197
parent9b9d74ad74982025443a2a52bd9e116fcae41765 (diff)
downloadmicroblog-be1caa07cd615450599ba8c3c8cd5f0647d1f7a8.tar.gz
microblog-be1caa07cd615450599ba8c3c8cd5f0647d1f7a8.tar.bz2
microblog-be1caa07cd615450599ba8c3c8cd5f0647d1f7a8.zip
change HTML produced by the auto-link function
-rw-r--r--functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 49d4278..aad239a 100644
--- a/functions.php
+++ b/functions.php
@@ -13,7 +13,7 @@ function autolink($text='') {
return preg_replace_callback("#$pattern#i", function($matches) {
$input = $matches[0];
$url = preg_match('!^https?://!i', $input) ? $input : "http://$input";
- return '<a href="' . $url . '" rel="nofollow" target="_blank">' . "$input</a>";
+ return '<a href="' . $url . '" data-external="true">' . "$input</a>";
}, $text);
}