2

{!tableData} is Server variable.

<script> 
$('.content').html("{!tableData}"); ... 
</script>

"{!tableData}" is having HTML data.

1 Answer 1

1

You will need to encode using JSENCODE and HTMLENCODE .

Here is what you can do

<script type="text/javascript"> 
  $('.content').html("{!JSINHTMLENCODE(tableData)}"); ... 
</script>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .