Hello I am very new to everything I am attempting to do here, I will try to be as detailed as possible with my problem.
I am trying to have html render in a google visualization table using google-apps-script on google-sites. As a test case I have taken this exact example from the google visualization docs and tried it on my page but the html is not working, it is only being displayed as text.
On my page I have an apps-script gadget inserted that calls htmlService like so...
function doGet() {
return HtmlService.createHtmlOutputFromFile('testTable');
}
In testTable.html I have copied this exact code from the documentation except that i have set allowHtml to true in the table options, and added some html bold tags around two of the table entries to test if the html is rendering properly. Like this..
<html>
<head>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("visualization", "1", {packages:["table"]});
google.setOnLoadCallback(drawTable);
function drawTable() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Name');
data.addColumn('number', 'Salary');
data.addColumn('boolean', 'Full Time Employee');
data.addRows([
['<b>Mike</b>', {v: 10000, f: '$10,000'}, true],
['<b>Jim</b>', {v:8000, f: '$8,000'}, false],
['Alice', {v: 12500, f: '$12,500'}, true],
['Bob', {v: 7000, f: '$7,000'}, true]
]);
var table = new google.visualization.Table(document.getElementById('table_div'));
table.draw(data, {showRowNumber: true, allowHtml: true});
}
</script>
</head>
<body>
<div id="table_div"></div>
</body>
</html>
I have done this same example in JSFiddle and it does render the bold html tags properly. Is there something I need to do differently to make allowHtml work on my google site?