Exemple #1
0
 public override string ToString()
 {
     if (literalOverride == null)
     {
         return(RawText);
     }
     return(Data.Substring(Offset, literalOffset - Offset) +
            LiteralElementMethods.CssEscape(literalOverride, quotChar) +
            Data.Substring(literalOffset + literalLen, (Offset + Length) - (literalOffset + literalLen)));
 }
Exemple #2
0
 public override string ToString()
 {
     if (literalOverride == null)
     {
         return(RawText);
     }
     return(Data.Substring(Offset, literalOffset - Offset) +
            (quotChar == 0 ? "\"" : "") +
            LiteralElementMethods.CssEscape(literalOverride, quotChar, '(', ')', ' ', '\t', '"', '\'', ',') +
            (quotChar == 0 ? "\"" : "") +
            Data.Substring(literalOffset + literalLen, (Offset + Length) - (literalOffset + literalLen)));
 }