parseFigureCaptionHTML function

List<TextSpan> parseFigureCaptionHTML(
  1. String content, {
  2. double baseFontSize = 12.0,
})

Implementation

List<TextSpan> parseFigureCaptionHTML(String content,
    {double baseFontSize = 12.0}) {
  try {
    var data = [TextSpan(text: content)];
    _contentParsers.forEach((p) => data = p(data, baseFontSize));
    return _decodeHTML(data);
  } catch (exception) {
    return [];
  }
}