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

Some HTML tags/attributes get stripped when editing policies

      When editing a policy via Site admin > Users > Policies and agreements > Manage policies > Action > Edit, some HTML tags/attributes get stripped out.

      The content (including all tags/attributes) gets saved correctly in the database table, tool_policy_versions. But if you edit the policy again, the content loaded in the editor will be a cleaned version of the original content. Some tags and attributes may be stripped out.

       

      For example,

      Enter the following as the content in the editor (in HTML source view/mode):

      <p><span class="mytest border" data-test="ABC123" aria-label="testing">Enter the policy details here.</span></p>

       

      Save changes.

      Edit the policy again. Switch to the HTML source mode of the editor. Notice that the content is:

      <p><span class="mytest border">Enter the policy details here.</span></p>

       

      Some attributes have been stripped out.

       

            rjnl Rajneel Totaram
            rjnl Rajneel Totaram
            Meirza Meirza
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:

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

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