Suggestions to triple quoted strings proposal

Brendan Eich brendan at
Tue Dec 12 15:28:40 PST 2006

On Dec 12, 2006, at 2:14 PM, Jeff Walden wrote:

> Peter Hall wrote:
>> Which is interesting for comparison, as it ignores all leading but  
>> not
>> subsequent white.
> This is due to XML.prettyPrinting being true, I suspect; I'd check  
> if I had more free time right now.  Also, unless you drop to  
> entities you can't embed {, }, or < in the string this way.


BTW, this works in SpiderMonkey (in Firefox):

var q = String( <>
                 "Som'e' "
                 multiline text
                 </>.toXMLString() );


More information about the Es4-discuss mailing list