diff --git a/lib/onebox/engine.rb b/lib/onebox/engine.rb
index <HASH>..<HASH> 100644
--- a/lib/onebox/engine.rb
+++ b/lib/onebox/engine.rb
@@ -59,7 +59,13 @@ module Onebox
     end
 
     def link
-      @url.gsub(/['\"<>]/, CGI::TABLE_FOR_ESCAPE_HTML__)
+      @url.gsub(/['\"<>]/, {
+        "'" => '&#39;',
+        '&' => '&amp;',
+        '"' => '&quot;',
+        '<' => '&lt;',
+        '>' => '&gt;',
+      })
     end
 
     module ClassMethods
Don't use CGI::TABLE_FOR_ESCAPE_HTML__.