 
 
 			<cfloop array="#data.params#" index="p">
-				<div class="param" id="p-#XmlFormat(p.name)#">
+				<div class="param" id="p-#encodeForHTMLAttribute(p.name)#">
 					<h4>
 						#encodeForHTML(p.name)#
-						<cfif structKeyExists(p, "type") and len( p.type )><em><span class="text-muted">#p.type</span></em></cfif>
+						<cfif structKeyExists(p, "type") and len( p.type )><em><span class="text-muted">#encodeForHTML(p.type)#</span></em></cfif>
 						<cfif IsBoolean(p.required) AND p.required><div class="pull-right"><span class="label label-danger">Required</span></div></cfif>
 						<cfif structKeyExists(p, "default") and len( trim( p.default ) )>
 								<div class="p-default pull-right"><span class="text-muted">Default:</span> <code>#encodeForHTML(p.default)#</code></div>

					</cfif>
				</h4>
				<p class="clearfix">#autoLink(ex.description)#</p>
				<pre class="prettyprint"><code>#HTMLEditFormat(ex.code)#</code></pre>
				<cfif StructKeyExists(ex, "result") AND Len(ex.result)>
					<p><strong>Expected Result: </strong> #XmlFormat(ex.result)#</p>
				</cfif>
			</cfloop>
			<div class="modal fade example-modal" tabindex="-1" role="dialog">

					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
							<h4 class="modal-title">#encodeForHTML(data.name)# Example</h4>
						</div>
						<div class="modal-body" id="example-modal-content">
						</div>
