Fancy text script

hey guys recently i came accros this site Zalgo text , i also want to make this type of website, can u guide me how to design logic of this converter? thanks

Use something like this I guess:

Here is a zalgo text generator goto source and copy js script !!!