safe.messaging.item.heading module

InaSAFE Disaster risk assessment tool developed by AusAid - Title Module.

Contact : ole.moller.nielsen@gmail.com

Note

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

class safe.messaging.item.heading.Heading(text=None, level=1, **kwargs)[source]

Bases: safe.messaging.item.message_element.MessageElement

A Heading class for titles and subtitles much like the h1-h6 in html

to_html()[source]

Render a Heading MessageElement as html

Returns:The html representation of the Heading MessageElement.
Return type:str
to_text()[source]

Render a Heading MessageElement as plain text

Returns:The plain text representation of the Heading MessageElement.