Search
 
SCRIPT & CODE EXAMPLE
 

PHP

br2nl

$html = 'this <br>is<br/>some<br />text <br    />!';
$nl = preg_replace('#<brs*/?>#i', "
", $html);
echo $nl;
Comment

br2nl

$newlineTags = array(
  '<br>',
  '<br/>',
  '<br />',
);
$html = str_replace($newlineTags, PHP_EOL, $html);
Comment

br2nl

$newlineTags = array(
                '<br>',
                '<br/>',
                '<br />',
            );
            $str = str_ireplace($newlineTags, PHP_EOL, $str);
Comment

PREVIOUS NEXT
Code Example
Php :: php imap before date subject 
Php :: check if date is older than today php 
Php :: php years 
Php :: array length php for loop 
Php :: php getUserStateFromRequest 
Php :: laravel get limited character of string 
Php :: drupal 9 custom local stream wrapper 
Php :: what is the fee/commission charge for payoneer 
Php :: jump to line phpstorm 
Php :: laravel echo server 
Php :: eager loading in hasmany belongsto relationship 
Php :: pg_relation_size in mb 
Php :: wp_query not have term 
Php :: veue laravel remove #/ 
Php :: modal align center yii2 
Php :: simple php round When a negative value is passed as a parameter 
Php :: get pivot id laravel 
Php :: stupidity 
Php :: m 
Php :: Collapse all codes in PHP Storm IntelliJ 
Php :: ci4+ connection code 
Php :: Yii2: Setting default values for all attributes of a model 
Php :: detect change in log file in real time php 
Php :: how to insert last id from crud grocery codeigniter 
Php :: schema key issue laravel 
Php :: obtener datos de orden wordpress php 
Php :: HTTP Authentication example forcing a new name/password 
Php :: php artisan reset --force 
Php :: FT_USER 
Php :: Only Show Specific Countries In Caldera Forms Phone Field 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =