Moodle
  1. Moodle
  2. MDL-4733

HTML Block - title causes problems when html inside title!

    Details

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

      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:''; ?>

        Activity

        Hide
        Martin Dougiamas added a comment -

        From Dan Marsden (dan at digitalclay.co.nz) Monday, 13 February 2006, 08:06 AM:

        the fix would be to alter the code to this:

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

        From Dan Marsden (dan at digitalclay.co.nz) Thursday, 8 June 2006, 06:21 PM:

        assigning to ML - (any chance you could commit this one - it's flippin simple and really bugs me!)

        Dan

        From Dan Marsden (dan at digitalclay.co.nz) Monday, 24 July 2006, 06:08 AM:

        now in 16_stable and HEAD!

        Show
        Martin Dougiamas added a comment - From Dan Marsden (dan at digitalclay.co.nz) Monday, 13 February 2006, 08:06 AM: the fix would be to alter the code to this: <?php echo isset($this->config->title)?p($this->config->title):''; ?> From Dan Marsden (dan at digitalclay.co.nz) Thursday, 8 June 2006, 06:21 PM: assigning to ML - (any chance you could commit this one - it's flippin simple and really bugs me!) Dan From Dan Marsden (dan at digitalclay.co.nz) Monday, 24 July 2006, 06:08 AM: now in 16_stable and HEAD!

          People

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

            Dates

            • Created:
              Updated:
              Resolved: