| Current Path : /var/www/homesaver/www/bitrix/js/main/core/src/internal/ |
| Current File : /var/www/homesaver/www/bitrix/js/main/core/src/internal/encode-attribute-value.js |
import Type from '../lib/type';
import Text from '../lib/text';
export default function encodeAttributeValue(value: any)
{
if (Type.isPlainObject(value) || Type.isArray(value))
{
return JSON.stringify(value);
}
return Text.encode(Text.decode(value));
}