Skip to content
Snippets Groups Projects

3238870-refactored-parse-html

Closes #3238870

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Shubham kumar added 210 commits

    added 210 commits

    Compare with previous version

  • Shubham kumar resolved all threads

    resolved all threads

  • Shubham kumar added 1 commit

    added 1 commit

    Compare with previous version

  • Shubham kumar added 1 commit

    added 1 commit

    Compare with previous version

  • Shubham kumar added 1 commit

    added 1 commit

    Compare with previous version

  • Shubham kumar added 77 commits

    added 77 commits

    Compare with previous version

  • 1333 1333 const settings = response.settings || ajax.settings || drupalSettings;
    1334 1334
    1335 1335 // Parse response.data into an element collection.
    1336 let $newContent = $($.parseHTML(response.data, document, true));
    1336 const parseHTML = (htmlString, context, keepScripts) => {
  • 1333 1333 const settings = response.settings || ajax.settings || drupalSettings;
    1334 1334
    1335 1335 // Parse response.data into an element collection.
    1336 let $newContent = $($.parseHTML(response.data, document, true));
    1336 const parseHTML = (htmlString, context, keepScripts) => {
    1337 const fragment = context.createDocumentFragment();
  • 1334 1334
    1335 1335 // Parse response.data into an element collection.
    1336 let $newContent = $($.parseHTML(response.data, document, true));
    1336 const parseHTML = (htmlString, context, keepScripts) => {
    1337 const fragment = context.createDocumentFragment();
    1338 // Create a temporary div element
    1339 const tempDiv = fragment.appendChild(document.createElement('div'));
    1340
    1341 // Set the innerHTML of the div to the provided HTML string
    1342 tempDiv.innerHTML = htmlString;
    1343
    1344 // Return the contents of the temporary div
    1345 return tempDiv.childNodes;
    1346 };
    1347
    1348 let $newContent = $(parseHTML(response.data, document, false));
  • Shubham kumar added 283 commits

    added 283 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading