What is happening here is the updated value of

$(codeSelector).html() is not being returned after conversion. It is
locked within the library. While the console.log displays the proper
value, it cannot escape the function. TODO: Return the updated text!

[ci skip]