+ * Replace special HTML characters in HTMLElement's attribute with their relative HTML entity values.\r
+ * @param {String} The attribute's value to be encoded.\r
+ * @returns {String} The encode value.\r
+ * @example\r
+ * element.setAttribute( 'title', '<a " b >' );\r
+ * alert( CKEDITOR.tools.htmlEncodeAttr( element.getAttribute( 'title' ) ); // ">a " b <"\r
+ */\r
+ htmlEncodeAttr : function( text )\r
+ {\r
+ return text.replace( /"/g, '"' ).replace( /</g, '<' ).replace( />/, '>' );\r
+ },\r
+\r
+ /**\r