equal
deleted
inserted
replaced
1876 */ |
1876 */ |
1877 |
1877 |
1878 function genPreview($text) |
1878 function genPreview($text) |
1879 { |
1879 { |
1880 global $lang; |
1880 global $lang; |
1881 $ret = '<div class="info-box">' . $lang->get('editor_preview_blurb') . '</div><div style="background-color: #F8F8F8; padding: 10px; border: 1px dashed #406080; max-height: 250px; overflow: auto; margin: 1em 0 1em 1em;">'; |
1881 $ret = '<div class="info-box">' . $lang->get('editor_preview_blurb') . '</div><div style="background-color: #F8F8F8; padding: 10px; border: 1px dashed #406080; max-height: 250px; overflow: auto; margin: 10px 0;">'; |
1882 $text = RenderMan::render(RenderMan::preprocess_text($text, false, false)); |
1882 $text = RenderMan::render(RenderMan::preprocess_text($text, false, false)); |
1883 ob_start(); |
1883 ob_start(); |
1884 eval('?>' . $text); |
1884 eval('?>' . $text); |
1885 $text = ob_get_contents(); |
1885 $text = ob_get_contents(); |
1886 ob_end_clean(); |
1886 ob_end_clean(); |