html - How to force css paragraph in a text fetched by a php function? -
in order product description in places in magento 1.7.0.2 using <?php echo $_product->getdescription() ?>
the problem i want split fetched text 2 or more paragraphs.
is possible to ? have include in mysql somes <p>
or <span>
inside text?
i don t know how approach it...
does has suggestion ?
you use wordwrap(), wraps string given number of characters without break word (optional parameter it), , let choose break parameter. in example it's spliting string paragraphs of 80 characters lenght each:
echo wordwrap($_product->getdescription, 80, "<br />\n");
Comments
Post a Comment