I am not a big fan of regex in PHP.
The following way is how I convert text hashtags to hyperlinks using only string functions.
function hashtagtolink($str)... |
Untuk mengubah teks tagar menjadi link, bisa menggunakan preg_replace:
function hashtagtolink($str) {
return... |