Search found 1 match

by richprich
Thu Mar 15, 2012 9:26 pm
Forum: PHP - Code
Topic: Only replace own website url in text with HTML links
Replies: 1
Views: 394

Only replace own website url in text with HTML links

When user post a comment, i strip all the html tags in the comment before insert into my database because i do not want them to post external links(SPAM) in the comment. But i only want to strip external links, i want to display my own website URL as normal clickable links. How to detect the URL is ...