Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#41 Node Saving

Next_Release
open
nobody
node (1) save (1)
1
2014-12-14
2013-09-12
mikepatt77
No

I'd like to request that the feature to save HTML be added to nodes as well. Very easy to implement. I added it with the following code (modified from save for the dom)

// save node as string
function save($filepath='')
{
    $ret = $this->innertext();
    if ($filepath!=='') file_put_contents($filepath, $ret, LOCK_EX);
    return $ret;
}

Discussion