spws
Version:
SharePoint Web Services Wrapper
17 lines (16 loc) • 554 B
TypeScript
/**
* @name escapeHtml
* @description Escaping HTML is required when sending data to a SharePoint via a web request.
* @param {String} string The string to be escaped.
* @return {String} Returns a string with escaped HTML
* @example
* import escapeHtml from "objectpoint-ui/lib/utils/escapeHtml";
*
* // Escape the & (ampersand) in the string
* escapeHtml("Operations & Development")
*
* // Returns
* "Operations & Development"
*/
declare const escapeXml: (xml: string | number) => string;
export default escapeXml;