|
@@ -56,6 +56,12 @@ func GetReportContentTextSub(content string) (contentSub string, err error) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+func GetAnnotationTextSub(content string) (contentSub string) {
|
|
|
+ contentSub = strings.Replace(content, "<p class=\"ql-align-justify\">", " ", -1)
|
|
|
+ contentSub = strings.Replace(contentSub, "</p>", "", -1)
|
|
|
+ return
|
|
|
+}
|
|
|
+
|
|
|
func GetReportContentTextSubNew(content string) (contentSub string, err error) {
|
|
|
content = html.UnescapeString(content)
|
|
|
doc, errdoc := goquery.NewDocumentFromReader(strings.NewReader(content))
|