html - Wrapping paragraphs in p tags -
i have html document has correct paragraph formatting of text there paragraphs don't contain p tags , such not displaying correctly.
is there way inclose paragraphs <p> </p>
tags using text editor regular expressions? tried using html tidy, cant recognize separate paragraphs or reformats in wrong way, dont know going on...
i need each paragraph doesnt contain html tags have paragraphs wrapped:
template design creation layout content exist on each page. custom programing make features work design. photos of location website design elements.
like this
<p>template design creation layout content exist on each page.</p> <p>custom programing make features work design.</p> <p>photos of location website design elements.</p>'
using regular expressions:
/($|\n|^)/$1<\/p>\n<p>/g
is easiest, requires cleaning close tag @ start of document , open tag @ end. possible perfect don't find it's worth trouble.
Comments
Post a Comment