Input Text

Output Text

String Builder Tool

How to build string variable from plain text

  1. Enter the text in Input textarea.
  2. Click on Show Output button.

Uses

  • convert text to multiline string for programming languages like javascript.
  • concatenate HTML
  • json multiline strings

Example

Suppose entered text is:

<div class="className">
    <h3>Hello World</h3>
    <p class="paragarph">Hello</p>
</div>

String converted would be:

 '   <div class="className">  '  + 
 '       <h3>Hello World</h3>  '  + 
 '       <p class="paragarph">Hello</p>  '  + 
 '  </div>  ' ;