You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Locally
On a staging site
On a production website
With only LifterLMS and a default theme
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: