i want to display with help css a character with another character. In my page wordpress i have a code like this:
</span>
<span class="address-place">
<?php echo the_excerpt (); ?>
<hr>
</span>
This code display this line:
< p >Adult Care Home in SE Portland hiring a live-in caregiver; must
speak English, be able to perform the job dutiesâ¦
I want to replace < p > with another character like nothing or something else in css? I don’t need to display that character in my description and i want to hide him but in css because my edit page generate < p > tags.
Thanks
CSS cannot manipulate text; it’s purely a language for styling your content.
But you’re using PHP â just have the PHP output whatever you wanted in the first place.
Function
the_excerpt()
was echo in return, so don’t use echo ( recommended to used in wp loop ). If you need to use echo, use functionget_the_excerpt()
.If you have issue html not decode properly, use
wp_specialchars_decode
. Here the options that you can achieve:Filter
the_excerpt
, put this code intofunctions.php
Or direct decode into function