Last active
August 11, 2017 12:04
-
-
Save bardware/5cea411e72e725c183db05876527e620 to your computer and use it in GitHub Desktop.
Adobe Encodes forward slash as /
This file contains hidden or 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
| <!--- https://medium.com/@gokulraj/esapis-encodeforhtml-vs-encodeforhtmlattribute-79958c07ba0d ---> | |
| <cfset str = "HFW int. 18/2015"> | |
| <cfset stru = { | |
| strHTMLEditFormat = HTMLEditFormat(str), | |
| strEncodeForHTML = EncodeForHTML(str), | |
| strEncodeForHTMLAttribute = EncodeForHTMLAttribute(str), | |
| strEncodeForJavaScript = EncodeForJavaScript(str), | |
| str = str | |
| }> | |
| <cfdump var="#stru#"> | |
| <cfoutput> | |
| #SerializeJSON(stru)#<br> | |
| <cfdump var="#HTMLEditFormat(str)#"><br> | |
| <cfdump var="#EncodeForHTML(str)#"><br> | |
| <cfdump var="#EncodeForHTMLAttribute(str)#"><br> | |
| <cfdump var="#EncodeForJavaScript(str)#"><br> | |
| <cfdump var="#str#"><br> | |
| <input type="text" value="#EncodeForHTMLAttribute(str)#"> | |
| <input type="text" value="#EncodeForJavaScript(str)#"> | |
| <input type="text" value="#EncodeForHTML(str)#"> | |
| </cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment