-Minor fixes
This commit is contained in:
@@ -503,7 +503,7 @@ If attributes are not mentioned, default values are used in each case.
|
||||
{
|
||||
for (int i = 0; i < interations; i++)
|
||||
{
|
||||
using (StringWriter w = StringUtils.CreateStringWriter(StringUtils.GetLength(text) ?? 16))
|
||||
using (StringWriter w = StringUtils.CreateStringWriter(text.Length))
|
||||
{
|
||||
char[] buffer = null;
|
||||
JavaScriptUtils.WriteEscapedJavaScriptString(w, text, '"', true, JavaScriptUtils.DoubleQuoteCharEscapeFlags, StringEscapeHandling.Default, null, ref buffer);
|
||||
|
||||
Reference in New Issue
Block a user