Skip to main content

Business Text

The Business Text visualization panel is a perfect companion to Business News Data Source.

The Business Text panel visualizes the RSS feed from a YouTube channel.
The Business Text panel visualizes the RSS feed from a YouTube channel.

Disable Sanitize HTML

To display HTML returned from feeds, disable the Sanitize HTML parameter.

Docker

GF_PANELS_DISABLE_SANITIZE_HTML=true

Example

To display the YouTube feed with the latest videos we used HTML and Handlebars template for data fields.

Handlebar valueDescription
{{author}}Author.
{{date updated 'MMM, DD YYYY'}}Updated date in the specific format.
{{link}}URL.
{{media:group:media:thumbnail:url}}Thumbnail URL.
{{title}}Title.

Template (Content) was displayed for each row as defined in the options.

<table width="100%" style="border: 0">
<tr>
<td width="*" style="border: 0">
<h3>
<a target="_blank" style="color: blue" href="{{link}}">{{title}}</a>
</h3>
</td>
<td rowspan="2" style="border: 0" width="30%">
<div><img src="{{media:group:media:thumbnail:url}}" /></div>
</td>
</tr>
<tr>
<td style="border: 0">
<b>{{date updated 'MMM, DD YYYY'}} by {{author}}</b>
</td>
</tr>
</table>