CensorText variable
Example Usage:
ASP Source Code:<% Dim mystring, censoredstring mystring = "A sample of text that you would like to censor" censoredstring = CensorText(mystring) Response.Write(censordedstring) %>
<% Function CensorText( sText ) Dim sRet sRet = sText sRet = Replace(sRet, "fuck", "****" , 1,-1,vbTextCompare) sRet = Replace(sRet, "ass", "***", 1,-1,vbTextCompare) sRet = Replace(sRet, "shit", "****" , 1,-1,vbTextCompare) sRet = Replace(sRet, "dick", "****" , 1,-1,vbTextCompare) 'Add your own ugly words here... CensorText = sRet End Function %>