#NEWLINE# def link_to( label , url = '' , **attrs ) : #NEWLINE# #INDENT# 'Create a hyperlink with the given text pointing to the URL.\n    \n    If the label is ``None`` or empty, the URL will be used as the label.\n\n    This function does not modify the URL in any way.  The label will be\n    escaped if it contains HTML markup.  To prevent escaping, wrap the label\n    in a ``webhelpers2.html.literal()``.\n    ' #NEWLINE# attrs [ 'href' ] = url #NEWLINE# if ( ( label == '' ) or ( label is None ) ) : #NEWLINE# #INDENT# label = url #NEWLINE# #UNINDENT# return HTML . tag ( 'a' , url , ** attrs )