A simple test follows:

Hello, world!

Now perform function tests:

Functions are defined, now let's call one of them:

Call the second one:

Call the show function:

Now call the factory function with HTML encoding:

Now see if they exist:

Call the returned function:

Hello & goodbye world. One is < two, but > zero.

Now call the factory function with text encoding:

Now see if they exist:

Call the returned function:

Hello & goodbye world. One is < two, but > zero.