How To Convert HTML Entity Codes To Plain Text

Using Perl: use HTML::Entities; my $plainText = decode_entities(‘Put text to convert here’); Using PHP: $plainText = html_entity_decode(‘Put text to convert here’,ENT_QUOTES,’UTF-8′);
Using Perl: use HTML::Entities; my $plainText = decode_entities(‘Put text to convert here’); Using PHP: $plainText = html_entity_decode(‘Put text to convert here’,ENT_QUOTES,’UTF-8′);
Categories: How-To's, Technology Tags: convert, ENT_QUOTES, howto, html, HTML Code, HTML Codes, HTML Entities, HTML Entity, html_entity_decode, php, Plain Text, String, text(), tips
|
No comments