2 Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3 Code licensed under the BSD License:
4 http://developer.yahoo.com/yui/license.html
8 YUI.add("escape",function(C){var A={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`"},B={html:function(D){return D.replace(/[&<>"'\/`]/g,B._htmlReplacer);},regex:function(D){return D.replace(/[\-#$\^*()+\[\]{}|\\,.?\s]/g,"\\$&");},_htmlReplacer:function(D){return A[D];}};B.regexp=B.regex;C.Escape=B;},"3.3.0");