Skip to content

Instantly share code, notes, and snippets.

@Backoo
Backoo / wrap-paragraphs.js
Created Jan 26, 2019 — forked from kavanagh/wrap-paragraphs.js
Wrap an array of strings with p tags
View wrap-paragraphs.js
var paragraphs = ['paragraph 1', 'paragraph 1'];
var html = '<p>' + paragraphs.join('</p><p>') + '</p>';
You can’t perform that action at this time.