1 2 3 4
has_many :fight_wins, :class_name => 'Fight', :finder_sql => '#{sanitize_sql_array( "SELECT f.* ...
Ruby Refactor sanitize_sql_array
I can't get this to work pr...
1 2 3 4
public string CleanHtml(object Html) { var s = Html.ToString(); var b = new StringBuilder(); ...
C# C# HTML Encoding
This is my own attempt at w...
1 2 3 4
private static Regex _tags = new Regex("<[^>]*(>|$)", RegexOptions.Singleline | RegexOptions.ExplicitCapture | RegexOptions.Compiled); private static Regex _whitelist = new Regex(@" ...
C# Sanitize HTML
Takes a provided HTML strin...
Lets say I am building a fo...