i am trying to verify strings to make valid urls our of them
i need to only keep A-Z 0-9 and remove other characters from string using javascript or jquery
for example :
Belle’s Restaurant
i need to convert it to :
Belle-s-Restaurant
so characters ’s removed and only A-Z a-z 0-9 are kept
thanks