Skip to content

Commit

Permalink
imports: use html instead of x/net/html for escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Nov 15, 2024
1 parent 21aa329 commit 5a3dd8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bridgev2/commands/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import (
"context"
"encoding/json"
"fmt"
"html"
"net/url"
"regexp"
"slices"
"strings"

"github.com/skip2/go-qrcode"
"go.mau.fi/util/curl"
"golang.org/x/net/html"

"maunium.net/go/mautrix/bridgev2"
"maunium.net/go/mautrix/bridgev2/networkid"
Expand Down
3 changes: 1 addition & 2 deletions bridgev2/commands/startchat.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ package commands
import (
"context"
"fmt"
"html"
"strings"
"time"

"golang.org/x/net/html"

"maunium.net/go/mautrix/bridgev2"
"maunium.net/go/mautrix/bridgev2/networkid"
"maunium.net/go/mautrix/id"
Expand Down
3 changes: 1 addition & 2 deletions event/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ package event

import (
"encoding/json"
"html"
"slices"
"strconv"
"strings"

"golang.org/x/net/html"

"maunium.net/go/mautrix/crypto/attachment"
"maunium.net/go/mautrix/id"
)
Expand Down

0 comments on commit 5a3dd8d

Please sign in to comment.