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

broken nolink tag support in text filtering

XMLWordPrintable

      MDL-77525 introduced a regression in text filtering where <nolink> tags stop working.

      solution should be:

      public function filter_text($text, $context, array $options = array(),
              array $skipfilters = null) {
          $text = $this->apply_filter_chain($text, $this->get_text_filters($context), $options, $skipfilters);
          if (!isset($options['stage']) || $options['stage'] === 'post_clean') {
              // Remove <nolink> tags for XHTML compatibility.
              $text = str_replace(array('<nolink>', '</nolink>'), '', $text);
          }
          return $text;
      }
       

            skodak Petr Skoda (Inactive)
            skodak Petr Skoda (Inactive)
            Farhan Karmali Farhan Karmali
            Ilya Tregubov Ilya Tregubov
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 5 minutes
                1h 5m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.