Fixed invalid HTML for Subsubsections
Fixed escaping of HTML content in plain text
Trimmed labels for sections, subsections and subsubsections