this snippet shows all characters as chr(), html-entity and URLencoded

download options for html and code / html entities

you can download the source as PHP file,

open the file as plain text in a new window or

get the code in a textarea to copy it.