2

{!tableData} is Server variable.

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

"{!tableData}" is having HTML data.

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>
| improve this answer | |

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.