AK-21/Graphite-Industrial-Intelligence
0
1/**2 * @typedef {import('./core.js').CoreOptions & import('./util/format-smart.js').FormatSmartOptions} Options3 * @typedef {import('./core.js').CoreOptions} LightOptions4 */5 6import {core} from './core.js'7import {formatSmart} from './util/format-smart.js'8import {formatBasic} from './util/format-basic.js'9 10/**11 * Encode special characters in `value`.12 *13 * @param {string} value14 * Value to encode.15 * @param {Options} [options]16 * Configuration.17 * @returns {string}18 * Encoded value.19 */20export function stringifyEntities(value, options) {21 return core(value, Object.assign({format: formatSmart}, options))22}23 24/**25 * Encode special characters in `value` as hexadecimals.26 *27 * @param {string} value28 * Value to encode.29 * @param {LightOptions} [options]30 * Configuration.31 * @returns {string}32 * Encoded value.33 */34export function stringifyEntitiesLight(value, options) {35 return core(value, Object.assign({format: formatBasic}, options))36}37 