You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to WebSharper
Hi!
I'm pulling my hair out trying to output a non-breaking space. The
following does not create the result I want:
P [Text "one two"]
...since the '&' gets HTML-encoded into &
Any ideas?
Thanks,
J
Joel Björnson
unread,
Jul 6, 2011, 4:49:19 AM7/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to websh...@googlegroups.com
Hi, as you pointed out, text nodes are escaped before inserted. There is currently no combinator for easily inserting raw text strings so you'll have to define your own. Here is an example using jQuery:
open IntelliFactory.WebSharper.JQuery
[<JavaScript>] let (-!) (elem: Element) (text: string) = JQuery.Of(elem.Body).Html(text).Ignore elem
Your example can now written as:
P [] -! "one two"
Joel
johan
unread,
Jul 6, 2011, 4:57:44 PM7/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message