'read_data_file', 'write_data_file',
'url_encode', 'url_decode',
'join_path',
- 'html_entity_encode_dec', 'html_entity_encode_hex'
+ 'html_entity_decode'
);
###PERL_ENCODING_FILE_IN: use constant ENCODING_FILE_IN => 'UTF-8';
'help|h' => \$options{ 'help'}
);
-print html_entity_encode_dec('<a ="bleb & ęóąśłżźćń"/>')."\n";
-print html_entity_encode_dec('<a ="bleb & ęóąśłżźćń"/>', '', 1)."\n";
-print html_entity_encode_dec('<a ="bleb & ęóąśłżźćń"/>', 'UTF-8', 1)."\n";
-print html_entity_encode_hex('<a ="bleb & ęóąśłżźćń"/>')."\n";
-print html_entity_encode_hex('<a ="bleb & ęóąśłżźćń"/>', '', 1)."\n";
-print html_entity_encode_hex('<a ="bleb & ęóąśłżźćń"/>', 'UTF-8', 1)."\n";
+print html_entity_decode(
+ 'illegal: "&" -' . "\n".
+ 'name(gt): ">" -' . "\n".
+ 'name_inf(gta): ">a" -' . "\n".
+ 'decimal(126): "~" -' . "\n".
+ 'hexadecimal(7E). "~" -' . "\n".
+ 'bad names: Y;&enhedksdh; -' . "\n".
+ 'finally, some text :> -'
+)."\n";
+
+
+# print html_entity_encode_dec ('<a ="bleb & ęóąśłżźćń my ziom"/>')."\n";
+# print html_entity_encode_hex ('<a ="bleb & ęóąśłżźćń my ziom"/>')."\n";
+# print html_entity_encode_name('<a ="bleb & ęóąśłżźćń my ziom"/>')."\n";
+# print html_entity_encode_dec ('<a ="bleb & ęóąśłżźćń my ziom"/>', 1)."\n";
+# print html_entity_encode_hex ('<a ="bleb & ęóąśłżźćń my ziom"/>', 1)."\n";
+# print html_entity_encode_name('<a ="bleb & ęóąśłżźćń my ziom"/>', 1)."\n";
exit 0;
if ($options{'help'} ne '') {