Skip to content
Snippets Groups Projects
Commit 1a4aed9e authored by markfoodyburton's avatar markfoodyburton
Browse files

added check_html to ensure rendering is done right

parent ffb0c3d8
Branches
Tags 5.x-1.2
No related merge requests found
......@@ -19,15 +19,15 @@ function _InsertNode_replacer($matches) {
if ($nid && node_access('view',$node)) {
switch ($matches[2]) {
case 'body':
return $node->body;
return check_markup($node->body, $node->format, FALSE);
case 'teaser':
return $node->teaser;
return check_markup($node->teaser, $node->format, FALSE);
case 'link':
return l($node->title, "node/$node->nid");
case 'collapsed':
return theme('fieldset', array('#collapsible'=>true, '#collapsed'=>true, '#title'=>$node->title, '#value'=>$node->body));
default:
return theme('node', $node);
return node_view($node);
}
} else {
return '';
......@@ -41,7 +41,7 @@ function InsertNode_filter($op, $delta = 0, $format = -1, $text = '') {
case 'list':
return array(0 => t('Include/link node by ID or path'));
case 'description':
return t('Include/link node by ID or path');
return t('Include/link node by ID or path (Keep last in filter order)');
case 'prepare':
return $text;
case "process":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment