Generates printer-friendly HTML for a node.
Drupal\node\Node $node: The node that will be output.
$children: All the rendered child nodes within the current node.
The HTML generated for the given node.
function book_node_export(Node $node, $children = '') {
$build = node_view($node, 'print');
unset($build['#theme']);
// @todo Rendering should happen in the template using render().
$node->rendered = drupal_render($build);
return theme('book_node_export_html', array(
'node' => $node,
'children' => $children,
));
}