<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to set text formatting inside an HTML dashboard element for a TOKEN set by a search? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519760#M34902</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://splunk-usergroups.slack.com/team/UC22WSHA4" target="_blank" rel="noopener noreferrer"&gt;@marycordova&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;are you trying to do something like the use case in the following Answer of mine?&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Render-HTML-code-from-search-result-in-Splunk-dashboard/m-p/221935" target="_blank" rel="noopener noreferrer"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Render-HTML-code-from-search-result-in-Splunk-dashboard/m-p/221935&lt;/A&gt;&lt;SPAN&gt;I am not sure of the use case. Do you want to shorten the length of token?&lt;/SPAN&gt;&lt;SPAN&gt;Once you do that what is the use of token. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is another answer with Table with multi-values which formats as Tile using CSS, in case you just want to format table as Tile using HTML, this would be better approach.&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-display-more-than-20-charts-at-a-time-using/m-p/298526" target="_blank" rel="noopener noreferrer"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-display-more-than-20-charts-at-a-time-using/m-p/298526&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Even if the above two do not fall into your use case, I think I would be able to help. However, I need to to know what is your use case.&amp;nbsp;&lt;/SPAN&gt;Table with Multivalue needs to be passed to a token, then what do you plan to do with the token!&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;check Answer 1 if you want to render HTML content from Search result as html panel.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 17:14:14 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2020-09-15T17:14:14Z</dc:date>
    <item>
      <title>How to set text formatting inside an HTML dashboard element for a TOKEN set by a search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519585#M34888</link>
      <description>&lt;P&gt;Let's say I have a dashboard and it runs a search and when that search is done it sets a token $risk$.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel&amp;gt;
      &amp;lt;single depends="$hide$"&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;progress&amp;gt;
            &amp;lt;unset token="risk"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/progress&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;set token="risk"&amp;gt;$result.risk$&amp;lt;/set&amp;gt;
          &amp;lt;/done&amp;gt;
          &amp;lt;query&amp;gt;| base search
| table risk
| head 1&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;@m&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/single&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;font size="4"&amp;gt;
          &amp;lt;p style="text-align:left;"&amp;gt;$risk$&amp;lt;/p&amp;gt;
        &amp;lt;/font&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now risk is a multi-value field and the strings for each value are long:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Risk thing 1 0.06 &amp;gt; population (standard deviation 0.02 + average 0.04)
Risk thing 2 0.74 &amp;gt; population (standard deviation 0.21 + average 0.30)
Risk thing 3 0.90 &amp;gt; population (standard deviation 0.20 + average 0.65)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;What happens when the token gets set and the html element renders risk is that the values turn into one long string:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Risk thing 1 0.06 &amp;gt; population (standard deviation 0.02 + average 0.04),Risk thing 2 0.74 &amp;gt; population (standard deviation 0.21 + average 0.30),Risk thing 3 0.90 &amp;gt; population (standard deviation 0.20 + average 0.65)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need is some way to format the token inside the html element.&amp;nbsp; I have tried to mvjoin the field using html tags as the delimiter but that does not work:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Risk thing 1 0.06 &amp;gt; population (standard deviation 0.02 + average 0.04)&amp;lt;br&amp;gt;Risk thing 2 0.74 &amp;gt; population (standard deviation 0.21 + average 0.30)&amp;lt;br&amp;gt;Risk thinkg 3 0.90 &amp;gt; population (standard deviation 0.20 + average 0.65)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried different html tags around/inside the &amp;lt;p&amp;gt; and html elements and url encoded new line delimiters in the mv field and \n as a delimiter and who knows what else at this point.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to render the mv field values with a line break between them.&amp;nbsp; The only thing that kinda worked at all was the &amp;lt;pre&amp;gt; html tag, but I didn't really like that too much either.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 18:00:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519585#M34888</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2020-09-15T18:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to set text formatting inside an HTML dashboard element for a TOKEN set by a search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519590#M34890</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/159620"&gt;@marycordova&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't solve the problem directly, as I have had exactly the same issue, with the same attempted solutions, but not found a good 'solution' for essentially a table inside HTML panels. I suspect Splunk is controlling the rendering of content.&lt;/P&gt;&lt;P&gt;However, I have used two html panels top and tailing a &amp;lt;table&amp;gt; where the table rows can then be rendered through CSS and or Javascript to achieve an acceptable outcome. There are some simple examples for row rendering in the dashboard examples app, where you can prettify the table somewhat.&lt;/P&gt;&lt;P&gt;I'd be interesting to know if there is a simple way to force Splunk to render token derived HTML content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 03:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519590#M34890</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-09-15T03:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to set text formatting inside an HTML dashboard element for a TOKEN set by a search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519708#M34898</link>
      <description>&lt;P&gt;So - probably not possible with straight tokenization. I tried the |h formatter, but that didn't work. You'll need JS hook for this. But I've made it easy for you. Simply add this js snippet to the location specified, include it on the dashboard, update the p element (or any thing really), and there ya go! Renderable Elements based on tokens!&lt;/P&gt;&lt;P&gt;&amp;lt;app/appserver/static/js/token_render.js&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
                        "splunkjs/ready!",
                        "splunkjs/mvc/simplexml/ready!",
                        "splunkjs/mvc/utils",
                        "jquery"
                    ], function (mvc,
                                 ignored,
                                 splunkjsUtils,
                                 $
                    ) {
                            let tokens = mvc.Components.get("default");
                            let renderables = $('[token-render]');
                            for (var i = 0; i &amp;lt; renderables.length; i++){
                                let element = $(renderables[i]),
                                    element_data = element.data();
                                    tokens.on(`change:${element_data.token}`,
                                            (newTokenName, myToken, options) =&amp;gt; {
                                                    element.html(tokens.get(element_data.token));
                                                });
                                element.html(tokens.get(element_data.token));
                            };
                    });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dashboard:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard script="js/token_render.js"&amp;gt;
  &amp;lt;label&amp;gt;Testing&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;single &amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;&amp;lt;![CDATA[
      |makeresults | eval r1 = random() %100 / 100, r2 = random() %100 / 100, r3 = split(r1.",".r2, ","), risk = mvjoin(r3, "&amp;lt;br/&amp;gt;")]]&amp;gt;
    &amp;lt;/query&amp;gt;
          &amp;lt;progress&amp;gt;
            &amp;lt;unset token="risk"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/progress&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;set token="risk"&amp;gt;$result.risk$&amp;lt;/set&amp;gt;
          &amp;lt;/done&amp;gt;
          &amp;lt;earliest&amp;gt;-15m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;@m&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/single&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;font size="4"&amp;gt;
          &amp;lt;p style="text-align:left;" token-render="true" data-token="risk" /&amp;gt;
        &amp;lt;/font&amp;gt;
        &amp;lt;font size="4"&amp;gt;
          &amp;lt;p style="text-align:left;" token-render="true" data-token="risk" /&amp;gt;
        &amp;lt;/font&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 14:59:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519708#M34898</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2020-09-15T14:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set text formatting inside an HTML dashboard element for a TOKEN set by a search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519746#M34901</link>
      <description>&lt;P&gt;It would be the `$risk|n$` token filter that would turn off the implicit `$risk|h$` filter that made it HTML-safe... but calling `|n` inside an HTML panel doesn't work ... probably for securitay.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 15:52:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519746#M34901</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2020-09-15T15:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to set text formatting inside an HTML dashboard element for a TOKEN set by a search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519760#M34902</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://splunk-usergroups.slack.com/team/UC22WSHA4" target="_blank" rel="noopener noreferrer"&gt;@marycordova&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;are you trying to do something like the use case in the following Answer of mine?&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Render-HTML-code-from-search-result-in-Splunk-dashboard/m-p/221935" target="_blank" rel="noopener noreferrer"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Render-HTML-code-from-search-result-in-Splunk-dashboard/m-p/221935&lt;/A&gt;&lt;SPAN&gt;I am not sure of the use case. Do you want to shorten the length of token?&lt;/SPAN&gt;&lt;SPAN&gt;Once you do that what is the use of token. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is another answer with Table with multi-values which formats as Tile using CSS, in case you just want to format table as Tile using HTML, this would be better approach.&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-display-more-than-20-charts-at-a-time-using/m-p/298526" target="_blank" rel="noopener noreferrer"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-display-more-than-20-charts-at-a-time-using/m-p/298526&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Even if the above two do not fall into your use case, I think I would be able to help. However, I need to to know what is your use case.&amp;nbsp;&lt;/SPAN&gt;Table with Multivalue needs to be passed to a token, then what do you plan to do with the token!&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;check Answer 1 if you want to render HTML content from Search result as html panel.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 17:14:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519760#M34902</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-15T17:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to set text formatting inside an HTML dashboard element for a TOKEN set by a search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519764#M34904</link>
      <description>&lt;P&gt;I want to insert newlines/linbreaks in the token.&amp;nbsp; See the difference between code block 2 and code block 3.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 17:29:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519764#M34904</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2020-09-15T17:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to set text formatting inside an HTML dashboard element for a TOKEN set by a search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519784#M34908</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/159620"&gt;@marycordova&lt;/a&gt;&amp;nbsp;Try the following. The UI SPL adds a delimeter &lt;STRONG&gt;#br#&lt;/STRONG&gt; that gets converted in JS as &lt;STRONG&gt;&amp;lt;br/&amp;gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2020-09-16 at 12.32.55 AM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10850i4463904A473E94F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-09-16 at 12.32.55 AM.png" alt="Screen Shot 2020-09-16 at 12.32.55 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Following is the Simple XML Dashboard code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard script="convert_token_to_html.js"&amp;gt;
  &amp;lt;label&amp;gt;Risk Value to HTML&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;set token="tokRiskHTML"&amp;gt;$result.riskHTML|h$&amp;lt;/set&amp;gt;
          &amp;lt;/done&amp;gt;
          &amp;lt;query&amp;gt;| makeresults
| fields - _time
| eval risk="Risk thing 1 0.06 &amp;amp;gt; population (standard deviation 0.02 + average 0.04);Risk thing 2 0.74 &amp;amp;gt; population (standard deviation 0.21 + average 0.30);Risk thing 3 0.90 &amp;amp;gt; population (standard deviation 0.20 + average 0.65)"
| makemv risk delim=";"
| eval riskHTML=mvjoin(risk,"#br#")&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;100&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div id="htmlPanelWithToken"&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following is the required JS&amp;nbsp;&lt;STRONG&gt;convert_token_to_html.js&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;require([
    'jquery',
    'splunkjs/mvc',
    'splunkjs/mvc/simplexml/ready!'
], function($, mvc,) {
    var submittedTokens = mvc.Components.get('submitted');
    // Listen for a change to the token tokHTML value
    submittedTokens.on("change:tokRiskHTML", function(model, tokRiskHTML, options) {
        var tokRiskHTMLJS=submittedTokens.get("tokRiskHTML");
        if (tokRiskHTMLJS!==undefined)
        {
            tokRiskHTMLJS=tokRiskHTMLJS.replaceAll("#br#","&amp;lt;br/&amp;gt;");
            $("#htmlPanelWithToken").html(tokRiskHTMLJS);
        }
    });
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: You may notice that in the UI, I have used html escaping for the token using&amp;nbsp;&lt;STRONG&gt;$result.riskHTML|h$&lt;/STRONG&gt; which ensures that HTML elements are not passed as token value. The break line element &lt;STRONG&gt;&amp;lt;br/&amp;gt;&lt;/STRONG&gt; is added directly through JS code.&lt;BR /&gt;Please try and confirm!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 19:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519784#M34908</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-15T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to set text formatting inside an HTML dashboard element for a TOKEN set by a search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519804#M34911</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;&amp;nbsp;thanks for that link - that's exactly what's needed - my JS skills are poor, but I figured it could be done quite simply in JS&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 00:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519804#M34911</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-09-16T00:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to set text formatting inside an HTML dashboard element for a TOKEN set by a search?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519833#M34912</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;glad you found it helpful. Be careful for filtering actual unescaped html elements be used directly as code in backend as it may open up for injection attacks. That is what by default tokens do (convert to string vaule rather than HTML elements). So best use case is when you know which html tags to be applied from the token and process only those through JS. Similar to what I have done for this answer. &lt;STRONG&gt;#br/#&lt;/STRONG&gt; converts to &lt;STRONG&gt;&amp;lt;br/&amp;gt;&lt;/STRONG&gt;, but any other html element will convert to text (not HTML).&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 06:21:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-set-text-formatting-inside-an-HTML-dashboard-element-for/m-p/519833#M34912</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-16T06:21:32Z</dc:date>
    </item>
  </channel>
</rss>

