Code: Select all
<div class="entry-summary">
<?php if(strlen($page->description())>0 ){
echo html_entity_decode($page->description()); // Sergelie added ..entity... }
else{
echo html_entity_decode($helper->content2excerpt($page->content(false)));
// sergelie added ...entity... }
?>
</div>
If I enter some style in a style tag in the head of a post, the content of the tag (ex. p {color:red;} shows at the top of the description.
Is there a way to prevent this (I try to avoid having to recopy the description in the specific space provided).
Thanks for your help,
Sergelie