Exemplo n.º 1
0
 /// <summary>
 /// Instantiates an encoder using a custom code point filter. Any character not in the
 /// set returned by <paramref name="filter"/>'s <see cref="ICodePointFilter.GetAllowedCodePoints"/>
 /// method will be escaped.
 /// </summary>
 public UrlEncoder(ICodePointFilter filter)
     : this(new UrlUnicodeEncoder(CodePointFilter.Wrap(filter)))
 {
 }
Exemplo n.º 2
0
 /// <summary>
 /// Instantiates an encoder using a custom code point filter. Any character not in the
 /// set returned by <paramref name="filter"/>'s <see cref="ICodePointFilter.GetAllowedCodePoints"/>
 /// method will be escaped.
 /// </summary>
 public JavaScriptStringEncoder(ICodePointFilter filter)
     : this(new JavaScriptStringUnicodeEncoder(CodePointFilter.Wrap(filter)))
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Instantiates an encoder using a custom code point filter. Any character not in the
 /// set returned by <paramref name="filter"/>'s <see cref="ICodePointFilter.GetAllowedCodePoints"/>
 /// method will be escaped.
 /// </summary>
 public HtmlEncoder(ICodePointFilter filter)
     : this(new HtmlUnicodeEncoder(CodePointFilter.Wrap(filter)))
 {
 }