The output is Encoded data --> TEST&TEST;A&E&an HTML--- string - <© TVS> Here all the & is replaced with &. If it is a HTML entity it should not encode the string for ex: Here it displays as it should be only#!/usr/bin/perl; use HTML::Entities; $to_decode = "TEST&TEST;A&E&an HTML--- string - <© T +VS>"; $encoded = encode_entities($to_decode); print "Encoded data --> $encoded\n\n\n";
In reply to Re^5: replace &
by sandy1028
in thread replace &
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |