String Converter/Builder Free Online Tool
Build string for javascript
Give Rating
String Builder Tool
How to build string variable from plain text
- Enter the text in Input textarea.
- 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> ' ;