Skip to content

Commit 78e259a

Browse files
forkialfonsogarciacaro
authored andcommitted
Null Check for escapeHTML
1 parent c49681f commit 78e259a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Fable.React/Fable.Helpers.ReactServer.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ let private voidTags = System.Collections.Generic.HashSet<_>(["area"; "base"; "b
1515

1616
// Adapted from https://github.com/facebook/react/blob/37e4329bc81def4695211d6e3795a654ef4d84f5/packages/react-dom/src/server/escapeTextForBrowser.js#L49
1717
let escapeHtml (sb:StringBuilder) (str: string) =
18+
if isNull str then () else
1819
for c in str.ToCharArray() do
1920
match c with
2021
| '"' -> sb.Append("&quot")

0 commit comments

Comments
 (0)