in reply to Convert HTML Email message to plain text

strip html
  • Comment on Re: Convert HTML Email message to plain text

Replies are listed 'Best First'.
Re^2: Convert HTML Email message to plain text
by bajangerry (Sexton) on Oct 29, 2009 at 17:52 UTC
    Ok, that is more than a little bit confusing for me as there seems to be 50 ways to do this.
      There's at least 50 ways to do it because there's no "right" answer. You're losing semantic information when you go from HTML to plain text, so you have to be the judge of how lossy you want the transfer to be, and what proxies you want to have in the text form for things that cannot be represented.

      -- Randal L. Schwartz, Perl hacker

      The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

        There are people who write HTML emails and actually use the HTML for the semantic information HTML can provide? Amazing. I always thought 90% of such emails was written by people who may know HTML, but have no idea how to code in it, or how to configure their mail program to send anything else, and the remaining 10% uses it for BLINK and coloured fonts.

        "I write HTML email for the semantic information" sounds like "I read Playboy for the articles". It's possible, but no significant number of people actually do it.

          A reply falls below the community's threshold of quality. You may see it by logging in.