|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^3: Distinguish between HTML and Plain textby ikegami (Pope) |
| on Sep 26, 2011 at 23:36 UTC ( #927977=note: print w/ replies, xml ) | Need Help?? |
|
This is HTML:
This is text:
How can one possibly correctly identify them programatically? PS - This is the reason Atom is better than RSS. RSS doesn't provide a mean of specifying the content type, so it can't distinguish between text and HTML content. Clients have to guess. You could take a peek at how RSS clients do it, but I suspect they might work with less ambiguous content than you.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||