(string)
| 57 | * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping |
| 58 | */ |
| 59 | const _escapeRegExp = (string) => |
| 60 | string.replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string |
| 61 | |
| 62 | const _escapeHTML = (text) => { |
| 63 | return text |