TextValue.fromCrawledStringValue constructor

TextValue.fromCrawledStringValue(
  1. String value
)

Implementation

factory TextValue.fromCrawledStringValue(String value) => TextValue(
      value
          .replaceAllMapped(
            RegExp(r'\\(,|\\|;)', caseSensitive: false),
            (match) => match.group(1)!,
          )
          .replaceAll(RegExp(r'\\n', caseSensitive: false), "\n"),
    );