![]() |
Replace <br> with <p> in Context
vbulletin uses <br> instead of <p> in Content text where/how can I replace that for proper formatting?
The <br> tag should only be used to break line i.e <p>This is first line <br> This is second line.</p> Converting non-block elements with <br /> to <p> in PHP I was thinking something along the lines of: Code:
function sanitize_content($data) { In the CMS Articles I'm using HTML On- Convert Linebreaks (which uses on_nl2br) - so maybe the variable couple be changed using str_replace?? Code:
$variable = '<p>' . str_replace("\n", "</p><p>", $variable) . '</p>'; This is from includes/class_bbcode_alt.php Code:
starts line 156 Any ideas how to achieve this? |
All times are GMT. The time now is 02:28 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|