Open Electroid opened 1 year ago
I don't think this is possible
@robobun
import React from 'react';
console.log(
<div>hello</div>
);
@Jarred-Sumner Here is the output of the code you provided.
error: Unexpected &
<div>hello</div>
^
/tmp/bun-ZnwRNs/index.ts:3:3 44
Code was run using the latest build of Bun.
@robobun
import React from 'react';
console.log(
<div>hello</div>
);
@Jarred-Sumner here you go!
<div>hello</div>
Ran using the latest build of Bun, an all-in-one JavaScript runtime.
This should do the opposite of
escapeHTML
, and is useful for scenarios where text is extracted fromHTMLRewriter
, but needs to be unescaped.