domain/core/value_objects/text_or_html library

Classes

TextOrHtml
Determines whether the value is either text or html

Functions

validateText(String input) → Either<String, String>
validateText checks whether the input contains html tags or not