in reply to Re^4: replace &
in thread replace &
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: replace &
by Corion (Patriarch) on Jun 04, 2009 at 08:08 UTC | |
by sandy1028 (Sexton) on Jun 04, 2009 at 08:14 UTC | |
by Corion (Patriarch) on Jun 04, 2009 at 08:19 UTC | |
|