This topic is: not resolved
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
Please use one topic for only one question.
Please use one topic for only one question.
Please use one topic for only one question.
Hello,
I have a (stupid) question.
In php code I placed some html with PHP echo
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 whitespace/line break, like this
We deliver
REPAIRING
within one day.
How to remove the linebreak before and after the <span style=”line-height: 1.5;”><?php echo the_content(); ?></span><span style=”line-height: 1.5;”>. I like to show it like this</span>
We deliver REPAIRING within one day.
Kind regards,
Laura
Hi. Try replace <?php echo the_content(); ?> with <?php echo esc_html(the_content()); ?>
Thanks.
You must be logged in to reply to this topic.