remove break line php output
-
Hello,
I have a (stupid) question.
In php code I placed some html with PHP echo. (file: description.php)
like this
We deliver smartphones <b><?php echo the_content(); ?></b> within one day.
The output works, but as the content goes in the page, it gives an line break, like this
We deliver
REPAIRING
within one day.
How to remove the linebreak before and after the <?php echo the_content(); ?>. I like to show it like this
We deliver REPAIRING within one day.
Kind regards,
Laura
ps I tried also <?php echo esc_html(the_content()); ?> but the same result
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘remove break line php output’ is closed to new replies.