Skip to content

Commit

Permalink
fix html escape
Browse files Browse the repository at this point in the history
  • Loading branch information
czyt committed Nov 11, 2024
1 parent cf30d7b commit cfc4f0c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/communicate/communicate.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"encoding/json"
"encoding/xml"
"fmt"
"html"
"io"
"log"
"net"
Expand Down Expand Up @@ -427,7 +426,6 @@ func calculateMaxMessageSize(pitch, voice string, rate string, volume string) in
func escape(data string) string {
// Must do ampersand first
entities := make(map[string]string)
data = html.EscapeString(data)
data = escapeReplacer.Replace(data)
if entities != nil {
data = replaceWithDict(data, entities)
Expand Down

0 comments on commit cfc4f0c

Please sign in to comment.