'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.parseHtml = undefined;

var _htmlToReact = require('html-to-react');

var _htmlToReact2 = _interopRequireDefault(_htmlToReact);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

// We add a span to make parseHtml works with strings.
var parseHtml = exports.parseHtml = function parseHtml(value) {
  if (!value) return;

  return new _htmlToReact2.default.Parser().parse('<span>' + value + '</span>').props.children;
};