This has been bugging me for a while, the function of it is to allow a user to input an @ to someone's profile, and it hyperlink there.
The user enters their input "@userinput" which will then change to '<a href="userinput"> userinput </a>'. Any help would be greatly appreciated, my attempts can be seen below.