diff --git a/cli/state.go b/cli/state.go
index 47a1624c4..3d92f9000 100644
--- a/cli/state.go
+++ b/cli/state.go
@@ -5,12 +5,12 @@ import (
"context"
"encoding/json"
"fmt"
+ "html/template"
"os"
"reflect"
"sort"
"strconv"
"strings"
- "text/template"
"time"
"github.com/ipfs/go-cid"
@@ -992,9 +992,22 @@ var compStateTemplate = `
var compStateMsg = `
{{$code := GetCode .Msg.To}}
- {{$h := "h2"}}{{if .Subcall}}{{$h = "h4"}}{{end}}
+
-
{{.Msg.From}} -> {{.Msg.To}} ({{ToFil .Msg.Value}} FIL), M{{.Msg.Method}}
{{if not .Subcall}}
Msg CID: {{.Msg.Cid}}
{{end}}
{{if gt (len .Msg.Params) 0}}
@@ -1049,6 +1062,9 @@ func computeStateHtmlT(ts *types.TipSet, o *api.ComputeStateOutput, getCode func
"SumGas": sumGas,
"CodeStr": codeStr,
"Call": call,
+ "htmlSafeAttr": func(html string) template.HTMLAttr {
+ return template.HTMLAttr(html)
+ },
}).Parse(compStateTemplate)
if err != nil {
return err