Split escapeTextForBrowser into escapeTextContentForBrowser and quoteAttributeValueForBrowser
Remove unused memoizeStringOnly