[web] Add a <label> around choices on CheckBox and Radio form widgets
Allows clicking directly on the text rather than only on the widget.
Closes #7672774.
from__future__importabsolute_importimportmarkdownimportlogginglog=logging.getLogger(__name__)defmarkdown_publish(context,data):"""publish a string formatted as MarkDown Text to HTML :type context: a cubicweb application object :type data: str :param data: some MarkDown text :rtype: unicode :return: the data formatted as HTML or the original data if an error occurred """md=markdown.Markdown()try:returnmd.convert(data)except:importtraceback;traceback.print_exc()log.exception("Error while converting Markdown to HTML")returndata