<?php $text = "This is a #hashtag within some #awesometext."; $newText = preg_replace("/#(\w+)/", "<a href='category.php?tag=$1'>#$1</a>", $text); echo $newText;
You have javascript disabled. You will not be able to edit any code.