lib/html2jsx.js
function (rawStyle) {
    this.styles = {};
    rawStyle.split(';').forEach(function (style) {
      style = style.trim();
      var firstColon = style.indexOf(':');
      var key = style.substr(0, firstColon);
      var value = style.substr(firstColon + 1).trim();
      if (key !== '') {
        // Style key should be case insensitive
        key = key.toLowerCase();
        this.styles[key] = value;
      }
    }, this);
  }
function (rawStyle) {
    this.styles = {};
    rawStyle.split(';').forEach(function (style) {
      style = style.trim();
      var firstColon = style.indexOf(':');
      var key = style.substr(0, firstColon);
      var value = style.substr(firstColon + 1).trim();
      if (key !== '') {
        // Style key should be case insensitive
        key = key.toLowerCase();
        this.styles[key] = value;
      }
    }, this);
  }
function ( rawStyle ) { this . styles = { } ; rawStyle . split ( ';' ) . forEach ( function ( style ) { style = style . trim ( ) ; var firstColon = style . indexOf ( ':' ) ; var key = style . substr ( 0 , firstColon ) ; var value = style . substr ( firstColon + 1 ) . trim ( ) ; if ( key !== '' ) { // Style key should be case insensitive key = key . toLowerCase ( ) ; this . styles [ key ] = value ; } } , this ) ; }
Parse the specified inline style attribute value
@param {string} rawStyle Raw style attribute
Parse the specified inline style attribute value