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
orheight
value. The value can either be a number, or end with a percentage sign. Raises aValidationError
if the value is invalid.