Your IP : 3.138.174.53


Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/ui/bbcode/encoder/dist/
Upload File :
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/ui/bbcode/encoder/dist/encoder.bundle.js

/* eslint-disable */
this.BX = this.BX || {};
this.BX.UI = this.BX.UI || {};
(function (exports) {
	'use strict';

	class BBCodeEncoder {
	  encodeText(source) {
	    return String(source).replaceAll('&', '&amp;').replaceAll('[', '&#91;').replaceAll(']', '&#93;').replaceAll('\'', '&#39;').replaceAll('"', '&quot;').replaceAll('<', '&lt;').replaceAll('>', '&gt;');
	  }
	  decodeText(source) {
	    return String(source).replaceAll('&#91;', '[').replaceAll('&#93;', ']').replaceAll('&#39;', '\'').replaceAll('&quot;', '"').replaceAll('&lt;', '<').replaceAll('&gt;', '>').replaceAll('&amp;', '&');
	  }
	  encodeAttribute(source) {
	    return this.encodeText(source);
	  }
	  decodeAttribute(source) {
	    return this.decodeText(source);
	  }
	}

	exports.BBCodeEncoder = BBCodeEncoder;

}((this.BX.UI.BBCode = this.BX.UI.BBCode || {})));
//# sourceMappingURL=encoder.bundle.js.map