<%page args="element,renderid=False,sourceApp=None" />\
<%namespace name="lib" file="//lib.html" import="*"/>\
% if renderid:
<div id="${element.id}" class="html">
% endif
<div class="panel-body html">
<% html = element.options.get('rawcontent')%>\
<% src = element.options.get('serverSideInclude')%>\
    % if html:
        <%
            html = _(html)
            from splunk.models.view_escaping.cleanhtml import cleanHtmlMarkup
            html = cleanHtmlMarkup(html)
        %>\
                        ${html}
    % elif src:
                            <!-- HTML content loaded from server -->
    % else:
                            <!-- Empty HTML panel -->
    % endif
                        </div>\
    % if renderid:
                </div>
    % endif