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

Add text filtering stages

XMLWordPrintable

      The idea is to allow filters to alter the text at different stages in format_text():

      1. before format conversion
      2. before cleaning
      3. after cleaning (current)

      The format_string() would use separate stage because the expected results may be different.

      The problem here will be backwards compatibility, we will have to probably create 4 new methods in filter base class and supply backwards compatible setup.

      Also the UI might be a bit confusing because the order of execution will be nontrivial - each filter will be able to run text filtering in all 3 phases, string filtering will be in one separate stage.

      Performance cost should be negligible.

      This can be also discussed at:

      https://moodle.org/mod/forum/discuss.php?d=447802

       

            skodak Petr Skoda
            skodak Petr Skoda
            Jordi Pujol-Ahulló Jordi Pujol-Ahulló
            Ilya Tregubov Ilya Tregubov
            CiBoT CiBoT
            Votes:
            3 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 40 minutes
                40m

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