Browse Source

comment content fixed

master v0.1.5
ldf 3 years ago
parent
commit
863d7a899c
  1. 2
      module/story/stories.go
  2. 2
      text/rich_text.go

2
module/story/stories.go

@ -119,7 +119,7 @@ func (r Request) Create() (resp *Response, err error) {
}
log.Infof("response status: %d", client.HTTPStatus)
if http.StatusCreated != client.HTTPStatus {
log.Errorf("unexpected response")
client.Print()
err = errors.New("unexpected response")
return
}

2
text/rich_text.go

@ -42,5 +42,5 @@ func DeleteHtmlTags(src string) string {
return ""
}
return html.UnescapeString(des)
return html.UnescapeString(des)[1:]
}
Loading…
Cancel
Save