Created
August 31, 2011 12:10
-
-
Save nanbu/1183393 to your computer and use it in GitHub Desktop.
VBAで文字列をHTMLの属性(Attribute)としてエスケープ
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
| Function EscapeHTMLAttribute(Text) As String | |
| Dim Result As String | |
| Result = Replace(Text, "&", "&") | |
| Result = Replace(Result, """", """) | |
| EscapeHTMLAttribute = Result | |
| End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment