Skip Menu |
 

This queue is for tickets about the HTML-Parser CPAN distribution.

Report information
The Basics
Id: 18267
Status: rejected
Priority: 0/
Queue: HTML-Parser

People
Owner: Nobody in particular
Requestors: GAAS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 3.50
Fixed in: (no value)



Subject: Don't expand   in "foo&nbspbar"
Download (untitled) / with headers
text/plain 606b
The _decode_entities() function has an $allow_unterminated parameter that is documented as this: If $allow_unterminated is TRUE then we also unterminated named entities will also be expanded. The longest matching name in %entity2char will be used. $string = "foo&nbspbar"; _decode_entities($string, { nb => "@", nbsp => "\xA0" }, 1); print $string; # will print "foo bar" other browsers will not expand an unterminated entity name that is followed by another letter or digit. HTML::Entities should do the same.
Download (untitled) / with headers
text/plain 253b
---------------------------- revision 2.111 date: 2004/11/23 14:51:49; author: gisle; state: Exp; lines: +3 -3 MSIE compatibility: Expand unterminated entities in 'dtext' and expose the _decode_entities() routine. ----------------------------
Seems like MSIE still has this feature, but it will only expand the latin1 entities like this.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.