Hi there. I am listing entries in one list from two blog posts. I am then embedding the appropriate renderer for the blog entry based on what type of post it is. I am having problems with the body property. If there are double quotes in my body custom field of the entry, it breaks this (probably because i am going body=”{body}” however I need to be able to use double quotes and single quotes in my body, and I use the blog_post template in lots of different places so I really would prefer to embed it so I don’t have duplicate code. Is there some way I can convert my quotes to entities when they are inserted into the database so that when they are retrieved it doesn’t cause this problem?
{exp:weblog:entries weblog='blog_post'}
{embed="includes/blog_post"
title="{title}"
date="{entry_date format='%D %d %M'}"
year="{entry_date format='%Y'}"
time="{entry_date format='%g:%i %A'}"
url="/blog/post/{url_title}"
user_url="/blog/user/{username}"
user_name="{author}"
summary="{summary}"
body="{body}"
categories='{categories backspace="1"}<a href="/blog/category/{category_url_title}">{category_name}</a>,{/categories}'
}
{/exp:weblog:entries}