Make docstring sections HTML safe

Make docstring sections HTML safe so that they can be used for things like xml snippets, i.e.

Given an xml snippet :
"""
  <myxmlsnippet />
"""