[Rich Content Editor] Improve "Clear Formatting" Button: Also Remove Hidden Layout Elements like div Tags

Problem statement:

The "Clear Formatting" button in the Canvas Rich Content Editor currently removes visible text formatting such as bold, italics, font type, and size. However, it does not remove hidden HTML layout elements (like div tags) that are often pasted unintentionally when copying content from sources such as websites. As a result, users encounter issues with broken layout, misaligned content, or invisible boxes on the page. These layout issues remain even after clicking the "Clear Formatting" button, because the hidden div blocks or other HTML structures are preserved in the background.

Proposed solution:

Improve the "Clear Formatting" button so that it also strips out unnecessary structural HTML elements such as div, span,... 

User role(s):

instructor,student,ta,designer