Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-17542

html2text appears to be incompatible with the GPL



    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.8, 1.7.6, 1.8.7, 1.9.3
    • Fix Version/s: 1.8.9, 1.9.5
    • Component/s: Libraries
    • Labels:


      This library was reported in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507947

      The license for html2text is not included in the code, but rather on the website of the author:


      The most problematic bit of html2text's license is the requirement to get written permission to distribute:

      "However, if you want to include the scripts [...] in bundled or distributed scripts/software (such as Opera or Dashboard widgets, or the Formativ Academic Timetable), you should contact me first and obtain my express written permission."

      Then, there is a bit of discrimination for commercial sites through the addition of an "advertising clause":

      "Commercial/profit-making public websites:

      You should put a note saying that the script was provided for free by http://www.howtocreate.co.uk.

      You put a plain text (ie. not script) link to my site on your policy page or other appropriate page, to help me with my search engine rankings."

      The Debian developer who filed the bug suggested that we take a look at replacing this library with the one I have attached here. It's got the same name but is under the GPLv2+.

      Based on a quick 1.9 grep, that file is only used in lib/weblib.php:html_to_text(), which in turn is only used in format_text_email() of the same library file.


        1. html2text_replacement18.patch
          28 kB
        2. html2text_replacement19.patch
          28 kB
        3. html2text_replacement20.patch
          28 kB
        4. html2text.new.php
          20 kB
        5. html2text.php
          15 kB

          Issue Links



              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created:
                  Fix Release Date: