decode_entities possible bug?

R

Richard Bell

decode_entities does not appear to decode this text

<span class="linksep1">•</span>

The sequence &#8226 is left untouched.

Is this correct/expected behavior, a bug, or what?

Thanks for any help.

R
 
R

Richard Bell

Bob said:
Perhaps you could clarify what "decode_entities" is? Is it some sub or
module you wrote, or part of a CPAN module? If the latter, which one of
the 6000+ modules is it a method of? Thanks.

Apologies, I should have been clearer. HTML::Entities.

R
 
R

Richard Bell

Bob said:
Perhaps you could clarify what "decode_entities" is? Is it some sub or
module you wrote, or part of a CPAN module? If the latter, which one of
the 6000+ modules is it a method of? Thanks.

Apologies, I should have been clearer. HTML::Entities.

R
 
R

Richard Bell

Bill said:
He's using HTML::Entities to decode unicode for a bullet, and it does
not seem to work well. Perl support for Unicode over Ā is still in
the works for some modules.

Thanks Bill. Is there another more appropriate choice?

R
 
B

Bill

Thanks Bill. Is there another more appropriate choice?

Why should you have to decode this anyway? On my system, even decoded,
it will not display correctly outside of the browser. Why not leave it
as is?
 
R

Richard Bell

Bill said:
Why should you have to decode this anyway? On my system, even decoded,
it will not display correctly outside of the browser. Why not leave it
as is?
Without going into overmuch detail, for my purposes (not display, but
rather analysis of content) the undecoded characters get royally in the
way. I assume something along the lines of s/&#([0..9]){1,4}/ / will
turn them all into ' ' but had hoped for something a bit better as there
is some useful semantics amongst the rubble.

R
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top