Bio-Phylo

 view release on metacpan or  search on metacpan

lib/Bio/Phylo/NeXML/Entities.pm  view on Meta::CPAN

344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
__END__
 
=head1 NAME
 
Bio::Phylo::NeXML::Entities - Functions for dealing with XML entities
 
=head1 DESCRIPTION
 
This package provides subroutines for dealing with characters that need to be
encoded as XML entities, and decoded in other formats. For example: C<&> needs
to be encoded as C<&amp;> in XML. The subroutines have the same signatures and
the same names as those in the commonly-used module L<HTML::Entities>. They are
re-implemented here to avoid introducing dependencies.
 
=head1 SUBROUTINES
 
The following subroutines are utility functions that can be imported using:
 
 use Bio::Phylo::NeXML::Entities '/entities/';

lib/Bio/Phylo/NeXML/Entities.pm  view on Meta::CPAN

376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
Args    : Required, first argument: a string to encode
           Optional, second argument: a string that specifies
           which characters to encode
 
=item decode_entities
 
Decodes XML entities into the characters they code for
 
 Type    : Utility function
 Title   : decode_entities
 Usage   : my $decoded = decode_entities('string with &amp; or &gt;')
 Function: decodes encoded entities in argument string(s)
 Returns : Array of decoded strings
 Args    : One or more encoded strings
 
=back
 
=head1 SEE ALSO
 
There is a mailing list at L<https://groups.google.com/forum/#!forum/bio-phylo>
for any user or developer questions and discussions.
 
=over



( run in 0.226 second using v1.01-cache-2.11-cpan-496ff517765 )