Added HTML entity names for greater than and ampersand symbols.
Added braces to if control blocks.
Removed extra uri backslash.