/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Extend nl2br PHP : only ONE <br/> function neo_replace_nl2br($texte){ $pattern = '/<br\s*\/>([\n\s]*<br\s*\/>)+/si'; $replacement = '<br/>'; return $v_texte; }