def apply_markup(value, arg=None):
if arg is not None:<EOL><INDENT>return formatter(value, filter_name=arg)<EOL><DEDENT>return formatter(value)<EOL>
Applies text-to-HTML conversion.

Takes an optional argument to specify the name of a filter to use.