facebook/react — pull request #1515 by syranide (2014-05-11 13:00:17+00:00)
Title: Allow passing a string directly to dangerouslySetInnerHTML

In response to #1370 and to move the discussion along.

As far as I understand it, `{__html: X}` is not *really* intended as another safe-guard, but a remnant of how XHP worked/works.

Here's a fully backwards-compatible implementation, with a bunch of test-cases added to ensure correct functioning.