Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteHtmlAttributeValue()

void System.Xml.Xsl.XsltOld.SequentialOutput.WriteHtmlAttributeValue ( string value)
inlineprivateinherited

Definition at line 451 of file SequentialOutput.cs.

452 {
453 int length = value.Length;
454 int num = 0;
455 while (num < length)
456 {
457 char c = value[num];
458 num++;
459 switch (c)
460 {
461 case '&':
462 if (num != length && value[num] == '{')
463 {
464 Write(c);
465 }
466 else
467 {
468 Write("&amp;");
469 }
470 break;
471 case '"':
472 Write("&quot;");
473 break;
474 default:
475 Write(c);
476 break;
477 }
478 }
479 }

References System.length, System.value, and System.Xml.Xsl.XsltOld.SequentialOutput.Write().

Referenced by System.Xml.Xsl.XsltOld.SequentialOutput.WriteAttributes().