diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-08-18 17:25:20 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-08-18 17:25:20 +0530 |
commit | 99e05541510873a1b6980e338c4832259c725ddc (patch) | |
tree | 167d09e39f99c7737d0efcd43136a222ac10b2cd /src/fields/RichTextField.ts | |
parent | f7e3823f957c2fc550aaa928e5286a4f5f90448b (diff) | |
parent | 2563f68413594248823b26e68aa3b866ab1566a4 (diff) |
still css
Diffstat (limited to 'src/fields/RichTextField.ts')
-rw-r--r-- | src/fields/RichTextField.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fields/RichTextField.ts b/src/fields/RichTextField.ts index 2ca5ac082..ae5f301d0 100644 --- a/src/fields/RichTextField.ts +++ b/src/fields/RichTextField.ts @@ -28,7 +28,7 @@ export class RichTextField extends ObjectField { } [ToScriptString]() { - return `new RichTextField("${this.Data}", "${this.Text}")`; + return `new RichTextField("${this.Data.replace(/"/g, "\\\"")}", "${this.Text}")`; } [ToString]() { return this.Text; |