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

Consider iframe as actual content in html_is_blank

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5.1
    • General

      When a textarea custom field contains an iframe (such as embed youtube), without any additional text, the content is considered as blank.

      I think the iframe should be considered as an actual content, and this can be fixed by adding iframe to the list of allowed tags of strip_tags function.

      Please let me know if there is any other opinion.

       

      function html_is_blank($string) {
      return trim(strip_tags((string)$string, '<img><object><applet><input><select><textarea><hr>')) == '';
      }

       

       

            Nguyen Nathan Nguyen
            Nguyen Nathan Nguyen
            Alexander Van der Bellen Alexander Van der Bellen
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

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