fluent_contents.utils

This module provides additional small utility functions which plugins can use.

fluent_contents.utils.validate_html_size(value)

Validate whether a value can be used in a HTML width or height value. The value can either be a number, or end with a percentage sign. Raises a ValidationError if the value is invalid.