Skip to main content

Simple HTML to RML converter

Project description

Simple HTML to RML converter. It may be used to take output of TinyMCE or any other WYSIWYG html editor and use it in your RML template.

Installation with pip

pip install html2rml

Usage

This HTML code …

from html2rml import html2rml

html = """<p>This is text of simple paragraph.<br/> <b>This is bold.</b></p>"""
print(html2rml(html))

… will be converted to the following RML code.

<para style="p">This is text of simple paragraph.<br/> <b>This is bold.</b></para>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

html2rml-0.3.2.tar.gz (2.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page