Created
September 6, 2019 07:05
-
-
Save isummation/b6433d69cf4ecbabdfa90e16e9af9a0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfsavecontent variable="htmlcontent"> | |
<!DOCTYPE html [ <!ENTITY nbsp " "> | |
<!ENTITY reg "®"> <!ENTITY uuml "Ü"> | |
<!ENTITY auml "Ä"> <!ENTITY ouml "Ö"> | |
<!ENTITY rsquo "’">]> | |
<body> | |
<table border="1" cellpadding="3" cellspacing="1" class="normalTable"> | |
<thead> | |
<tr> | |
<th>First Name</th> | |
<th>Last Name</th> | |
<th>Email</th> | |
</tr> | |
</thead> | |
<tbody> | |
{{#Customer}} | |
<tr> | |
<td>{{firstname}}</td> | |
<td>{{lastname}}</td> | |
<td>{{email}}</td> | |
{{/Customer}} | |
</tr> | |
</tbody> | |
</table> | |
</body> | |
</cfsavecontent> | |
<!--- Convert to {{# ... }} to html tag---> | |
<cfset htmlcontent = reReplaceNoCase(htmlcontent, "\{\{##(.*?)\}\}", "<\1>","all")> | |
<!--- Convert to {{/ ... }} to html tag---> | |
<cfset htmlcontent = reReplaceNoCase(htmlcontent, "\{\{\/(.*?)\}\}", "</\1>","all")> | |
<!--- Convert to {{{ ... }}} to html tag---> | |
<cfset htmlcontent = reReplaceNoCase(htmlcontent, "\{\{\{(.*?)\}\}\}", "<\1/>","all")> | |
<!--- Convert to {{ ... }} to html tag---> | |
<cfset htmlcontent = reReplaceNoCase(htmlcontent, "\{\{(.*?)\}\}", "<\1/>","all")> | |
<cfset var validator = XmlValidate(htmlcontent)> | |
/// OUTPUT | |
["[Fatal Error] :20:7: The element type \"tr\" must be terminated by the matching end-tag \"</tr>\". "] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment