HTML to Rescript

Brought to you by Murphy Randle and Sean Grove

Paste HTML

Copy Rescript

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 Rescript comments
  • Closes self-closing attributes
  • Converts 'style' attribute into ReactDOMRe.make calls

Made Possible By