Yup. Check this out. It takes a hell of a lot of time to get used to but with some practice you'll find yourself writing 20 lines of html code in half a second, I'm totally serious.
I would imagine you would add what @baris mentioned in here:
if user is member of the poster set, return content as is