Improve hash generation: escape characters
Improve hash generation: escape characters

 * move hash generation into its own function
    for easier testing: quote_hash()
 * modify escape functions to prevent html and text
    version from including character inconsistencies

neotext/neotext-wordpress,neotext/neotext-wordpress,neotext/neotext-wordpress