-
-
Save stefan-jonker/938a650dd979b3868a91f3885dc68e28 to your computer and use it in GitHub Desktop.
Wrap an array of strings with p tags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var paragraphs = ['paragraph 1', 'paragraph 1']; | |
var html = '<p>' + paragraphs.join('</p><p>') + '</p>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment