* * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ if (defined('SHOW_SETTINGS') || empty($widget_settings)) { $common_output[] = '
The following html tags are supported: <b>, <iframe>, <i>, <ul>, <li>, <h1>, <h2>, <h3>, <h4>, <br>, <p>. If you want just text then wrap in <pre></pre>
'; } else { $tmp_config = array( 'HTML.Allowed' => 'b,iframe,i,ul,li,h1,h2,h3,h4,br,p', 'HTML.AllowedAttributes' => 'iframe@src,iframe@width,iframe@height', 'HTML.AllowedElements' => array('iframe'), 'HTML.Trusted' => true, 'HTML.SafeIframe' => true, 'URI.SafeIframeRegexp' => '%^(https?:)?//%', ); $common_output[] = display(nl2br($widget_settings['notes']), $tmp_config); //print_r($common_output);exit; unset($tmp_config); }