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

HTML Block - title causes problems when html inside title!

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: Blocks
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_16_STABLE

      Description

      If you include Html in the title of an html block eg you call it <a href=http://myhtml>my html block</a> it saves to the database correctly and displays correctly once saved, however if you go back to edit this block again, the html is garbled. (it doesn't like the double quotes)

      this line in blocks/html/config_instance.html needs to be fixed to display filtered 'clean' html in the input field of the form.

      <?php echo isset($this->config->title)?$this->config->title:''; ?>

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: