For server-side (Sitelet) markup, you can use the following:

1
let p = VerbatimContent "Copyright © 2014"

However it is true that there is no such constructor for client-side markup. Of course it is easy to create one based on the method you described, but it would indeed be useful to have one in the standard library.

I created a ticket for this issue: [link:bitbucket.org]

By on 4/23/2014 3:23 AM ()

It seems to work fine if you use the actual characters, so I made the following module to help [link:gist.github.com] it's a module with a character literal for every HTML character entity. Seems to be working both client and server side.

By on 5/8/2014 12:40 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper