@@ -19,18 +19,17 @@ let escapeHtml (sb:StringBuilder) (str: string) =
1919 let mutable charIndex = - 1
2020 for i = 0 to splits.Length - 2 do
2121 let part = splits.[ i]
22- sb.Append( part) |> ignore
22+ sb.Append part |> ignore
2323 charIndex <- charIndex + part.Length + 1
2424 let char = str.[ charIndex]
25- ignore (
26- match char with
27- | '"' -> sb.Append( " "" )
28- | '&' -> sb.Append( " &" )
29- | ''' -> sb.Append( " '" ) // modified from escape-html; used to be '''
30- | '<' -> sb.Append( " <" )
31- | '>' -> sb.Append( " >" )
32- | c -> sb.Append( c)
33- )
25+ match char with
26+ | '"' -> sb.Append( " "" )
27+ | '&' -> sb.Append( " &" )
28+ | ''' -> sb.Append( " '" ) // modified from escape-html; used to be '''
29+ | '<' -> sb.Append( " <" )
30+ | '>' -> sb.Append( " >" )
31+ | c -> sb.Append( c)
32+ |> ignore
3433 sb.Append( Array.last splits) |> ignore
3534
3635let inline private addUnit ( html : StringBuilder ) ( key : string ) ( value : string ) =
@@ -464,7 +463,7 @@ let private renderCssProp (html:StringBuilder) (prop: CSSProp) =
464463
465464let inline boolAttr ( html : StringBuilder ) ( key : string ) ( value : bool ) = if value then html.Append key |> ignore
466465
467- let inline strAttr ( html : StringBuilder ) ( key : string ) ( value : string ) =
466+ let inline strAttr ( html : StringBuilder ) ( key : string ) ( value : string ) =
468467 html.Append key |> ignore
469468 html.Append " =\" " |> ignore
470469 escapeHtml html value
0 commit comments