Skip to content

Clean iframe tags if DIVI #297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

geckod22
Copy link
Contributor

@geckod22 geckod22 commented Aug 6, 2025

Proposed changes

This PR aims to solve a problem within iframes added by Divi builder code widget. In this case if the code added has line breaks, an html comment is added for each line break inside the iframe tag itseld, and this brake our parsing process and so the widgets itself.

before the fix, the page is like empty

imagen

with the fix the widgtes are showed

imagen

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Visual

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

@geckod22 geckod22 requested a review from a team as a code owner August 6, 2025 13:19
Copy link
Contributor

github-actions bot commented Aug 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants