const React = require('react');
const ReactSafeHtml = require('react-safe-html');
const htmlTags = require('html-tags');
const { InjectedComponent } = require('./InjectedComponent');
/*
HTMLContent is a container for the page HTML that parse the content and
render the right block.
All html elements can be extended using the injected component.
*/
function inject(injectedProps, Component) {
return (props) => {
const cleanProps = {
...props,
className: props.className
};
delete cleanProps['class'];
return (