lib/ReactViews/Custom/parseCustomHtmlToReact.js
function parseCustomHtmlToReact(html, context) {
  if (!defined(html) || html.length === 0) {
    return html;
  }
  return htmlToReactParser.parseWithInstructions(
    html,
    isValidNode,
    getProcessingInstructions(context || {})
  );
}
function parseCustomHtmlToReact(html, context) {
  if (!defined(html) || html.length === 0) {
    return html;
  }
  return htmlToReactParser.parseWithInstructions(
    html,
    isValidNode,
    getProcessingInstructions(context || {})
  );
}
function parseCustomHtmlToReact ( html , context ) { if ( ! defined ( html ) || html . length === 0 ) { return html ; } return htmlToReactParser . parseWithInstructions ( html , isValidNode , getProcessingInstructions ( context || { } ) ) ; }
Return html as a React Element.
@param  {String} html
@param  {Object} [context] Provide any further information that custom components need to know here, eg. which feature and catalogItem they come from.
@return {ReactElement}
Return html as a React Element .