{!tableData} is Server variable.

$('.content').html("{!tableData}"); ... 

"{!tableData}" is having HTML data.


You will need to encode using JSENCODE and HTMLENCODE .

Here is what you can do

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.