HTML to Reason

Brought to you by Murphy Randle and Sean Grove

Paste HTML

Copy Reason

What this does

  • Fixes all reserved keywords, like 'class'=>'className='
  • Converts attributes to CamelCase
  • Decodes entities in text, then wraps it in quotes and ->string
  • Converts HTML comments to Reason comments
  • Closes self-closing attributes
  • Converts 'style' attribute into ReactDOMRe.make calls

Made Possible By