Closed dominiquemariano closed 1 week ago
My guess is we are escaping the content in the quiz descriptions. If we intend for admins to be able to embed any HTML, including iframes, and possibly scripts, we can update our code to use wp_kses_post or similar sanitization vs the likely stricter sanitization we are doing here.
Reproduction Steps
Expected Behavior
Both the blog post and the quiz should correctly display the output in the front-end.
Actual Behavior
Only the blog posts displays the correct output on the frontend, as you can see in this screenshot. The quiz does not display it correctly on the frontend, as you can see in this other screenshot
Why this happens
The style attribute of the
<iframe>
is being stripped away by the quiz. Blog posts do not do this in the block editor (Gutenberg).This issue has been recreated: