$v) { $news[$k]['text'] = io_safe_output($v['text']); $news[$k]['subject'] = io_safe_output($v['subject']); } if (!empty($news)) { $options = []; $options['id'] = 'news_json'; $options['hidden'] = 1; $options['content'] = base64_encode(json_encode($news)); html_print_div($options); } // Prints news dialog template echo '
'; ui_require_javascript_file('encode_decode_base64'); ?>