#41 Node Saving

Next_Release
open
nobody
node (1) save (1)
1
2014-12-14
2013-09-12
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


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks