URL2Text + Text2URL

URL2Text to convert a URL into string
Text2URL will converts a text with special chars into URL friendly string
ReplaceCriticalOnly = 1 means we do not want to do all chars, just the critical ones
Critical chars: characters that are needed to be replaced because otherwise might break the URL [space] ! " # ' / \
ReplaceCriticalOnly = 0 means we do want to do all special chars, except letters and numeric
Special chars: characters that we do not need to convert, will not break the URL
all Critical in addition to: $ [ ] ^ % & ( ) * + , - . : ; < = > ? @ _ { | } ~
Please be careful when converting ? & = most parameters are past using these urls, and some sites break when you convert them


Public

Tested

My Own Work

sURL
sText, ReplaceCriticalOnly

Views 4619 Downloads 1400