Skip to content

Commit

Permalink
Fix #55: Templating: translate CDATA as Verbatim
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarmil committed Oct 30, 2015
1 parent fcb332e commit a04cea5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WebSharper.UI.Next.Templating/Main.fs
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ type TemplateProvider(cfg: TypeProviderConfig) as this =
| null ->
e.Nodes() |> Seq.collect (function
| :? XElement as n -> [ createNode false n ]
| :? XCData as n -> let v = n.Value in [ <@ Doc.Verbatim v @> ]
| :? XText as n ->
getParts n.Value
|> List.map (function
Expand Down

0 comments on commit a04cea5

Please sign in to comment.