@antscorp/antsomi-ui 1.3.5-beta.817 → 1.3.5-beta.818
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -57,13 +57,14 @@ export declare const generateTagContent: (params: {
|
|
|
57
57
|
* - '"' with a double quote (")
|
|
58
58
|
* - ' ' with a space
|
|
59
59
|
* - 'nbsp;' with a space
|
|
60
|
+
* - ''' with a single quote (')
|
|
60
61
|
*
|
|
61
62
|
* @param {string} str - The input string containing HTML entities to unescape.
|
|
62
63
|
* @returns {string} The input string with specified HTML entities unescaped.
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
|
-
* // returns 'Hello "world" with spaces'
|
|
66
66
|
* unescapeString('Hello "world" with spaces');
|
|
67
|
+
* // returns 'Hello "world" with spaces'
|
|
67
68
|
*/
|
|
68
69
|
export declare const unescapeString: (str: string) => string;
|
|
69
70
|
/**
|
|
@@ -498,16 +498,19 @@ export const generateTagContent = (params) => {
|
|
|
498
498
|
* - '"' with a double quote (")
|
|
499
499
|
* - ' ' with a space
|
|
500
500
|
* - 'nbsp;' with a space
|
|
501
|
+
* - ''' with a single quote (')
|
|
501
502
|
*
|
|
502
503
|
* @param {string} str - The input string containing HTML entities to unescape.
|
|
503
504
|
* @returns {string} The input string with specified HTML entities unescaped.
|
|
504
505
|
*
|
|
505
506
|
* @example
|
|
506
|
-
* // returns 'Hello "world" with spaces'
|
|
507
507
|
* unescapeString('Hello "world" with spaces');
|
|
508
|
+
* // returns 'Hello "world" with spaces'
|
|
508
509
|
*/
|
|
509
|
-
export const unescapeString = (str) => str.replace(/"| |nbsp;/gm, (match) => {
|
|
510
|
+
export const unescapeString = (str) => str.replace(/"| |nbsp;|'/gm, (match) => {
|
|
510
511
|
switch (match) {
|
|
512
|
+
case ''':
|
|
513
|
+
return "'";
|
|
511
514
|
case '"':
|
|
512
515
|
return '"';
|
|
513
516
|
case ' ':
|