Skip to content

innertext not reflecting the new value #229

@chaudigv

Description

@chaudigv

use PHPHtmlParser\Dom;

$html = new Dom;

$html->loadStr('<div class="main_print_frame"><span class="d_input" data-name="institute_name">Progress Academy</span></div>');

foreach($html->find('.d_input') as $element) { $element->innertext = 'Future Academy'; }

dd($html->innertext); // still showing Progress Academy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions