Creating a variable from a large, complicated section of html

Its only me

New Member
I have several large (200+ lines) of html that I need to place in a variable to use several times in a loop. It gets very messy to escape this and that and keep formatting clean. Is there anyway to set a variable like this IF statement?\[code\]<?php if($condition): ?> <p>html here</p> <?php endif; ?>\[/code\]I know its possible with external files, but Id rather not add a series of includes to achieve this.
 
Back
Top