This plugin provides a simple way to spell characters from a string and present it to the user. Call it on the element which contains the code and that's it. If you have your own way of representing the spellified code. Just set the getTabulatedResult option to false and it will return an array of the spellified code.

Usage:


             //to get tabulated result
                  var codeOuput = $("#code").spellMe({
                      className: "table table-bordered",
                      target: "#result",
                      getTabulatedResult: true
                   });
                   
                //to store output in a variable
                  var codeOuput = $("#code").spellMe({
                      getTabulatedResult: false
                   }).returnWords();             
            
        
:

Result: