diff --git a/module/story/stories.go b/module/story/stories.go index c36f054..20cd175 100644 --- a/module/story/stories.go +++ b/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 } diff --git a/text/rich_text.go b/text/rich_text.go index e733ac2..d0ffec8 100644 --- a/text/rich_text.go +++ b/text/rich_text.go @@ -42,5 +42,5 @@ func DeleteHtmlTags(src string) string { return "" } - return html.UnescapeString(des) + return html.UnescapeString(des)[1:] }