/**
 * @function styleContent
 */

"use strict";

import ReactDOM from 'react-dom/server';

/** @lends styleContent */
function styleContent(elm) {
    let markup = ReactDOM.renderToStaticMarkup(elm);
    return markup
        .replace(/<style.*?>/, '')
        .replace(/<\/style.*?>/, '');
}

module.exports = styleContent;
