We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec868ac commit 7f02d28Copy full SHA for 7f02d28
2 files changed
go.mod
@@ -1 +1,3 @@
1
module github.com/dchenk/go-render-quill
2
+
3
+go 1.13
raw_op.go
@@ -2,6 +2,7 @@ package quill
import (
4
"fmt"
5
+ "html"
6
"strconv"
7
)
8
@@ -24,7 +25,7 @@ func (ro *rawOp) makeOp(o *Op) error {
24
25
case string:
26
// This op is a simple string insert.
27
o.Type = "text"
- o.Data = ins
28
+ o.Data = html.EscapeString(ins)
29
case map[string]interface{}:
30
if len(ins) == 0 {
31
return fmt.Errorf("op %+v lacks a non-text insert", *ro)
0 commit comments