# Javascript + string in HTML

**URL:** <https://www.ruby-forum.com/t/javascript-string-in-html/187855>\
**Category:** Rails\
**Created:** [April 30, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/javascript-string-in-html/187855 "2010-04-30T13:54:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhishek\_shukla](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/7cd45c/32.png) [@Abhishek\_shukla](https://www.ruby-forum.com/u/Abhishek_shukla)\
**Post date:** [April 30, 2010, 1:54pm UTC](https://www.ruby-forum.com/t/javascript-string-in-html/187855/1 "2010-04-30T13:54:10Z")

</div>

Hello the following I am getting for the server How do i append it to my  
view in a html format.  
response = { “data”: “\<div class=“datatable-column-header  
col1”\>Name\</div\>” }  
currently I am doing the following

something.prepend(response.data);

and the output on view I am getting string from Name.

Thanks for any help  
abhis
