Tweaked wrappers around parsoid output to match php output.