Created
February 14, 2015 02:35
-
-
Save mikedugan/a8af059c5879d79455f9 to your computer and use it in GitHub Desktop.
swift func
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
func createHtmlLink(linkTitle title: String = "Click Me", href: String = "#", #titleFormatter: (String) -> String) -> String | |
{ | |
return "<a href=\"\(href)\">\(titleFormatter(title))</a>" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment